REPL history search does not accept certain input

Open Beginner friendly
#612 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
70/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript, node.js

Research direction

Look for the console or REPL implementation, likely in a file handling command-line input. Find the history search function and examine how it processes keystrokes and matches against history. For the uppercase issue, modify the input handling to either lowercase search terms or correctly interpret shift+letter. For the regex issue, replace the .match method with .indexOf for simple string matching. Test the changes by running the REPL and verifying history search works with uppercase letters and plain text.

Written by the indexing model from the issue text.

Description

2 console related issues:

  • The history search does not write upper case letters, can be solved in two ways: lowercase the search terms, or parse the shift+letter combinations
  • The history search tries to parse regexes, will be solved by replacing .match with .indexOf
Dominant language
JavaScript
Stars
1.6k
Forks
179
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 1602/compound

All issues in 1602/compound

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.