Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing a backslash while searching for a file shows an error #4

Closed
rsyh93 opened this issue May 9, 2021 · 1 comment
Closed

Typing a backslash while searching for a file shows an error #4

rsyh93 opened this issue May 9, 2021 · 1 comment

Comments

@rsyh93
Copy link
Contributor

rsyh93 commented May 9, 2021

To Reproduce
Steps to reproduce the behavior:

While browsing the filesystem normally,

  1. Type any letter (e.g. 'k') to start the search
  2. Type the '\' character
  3. See error in dialog box

Expected behavior
No error; continue searching for a file with \ character.

Screenshots

SyntaxError: Invalid regular expression: /k\/: \ at end of pattern
   at new RegExp (<anonymous>)
   at Object.searchFile (/home/young/Projects/mdir.js/build/panel_blassed/BlessedPanel.js:362:27)
   at Object.keyInputSearchFile (/home/young/Projects/mdir.js/build/panel_blassed/BlessedPanel.js:238:18)
   at processTicksAndRejections (internal/process/task_queues.js:97:5)
   at async Screen.<anonymous> (/home/young/Projects/mdir.js/build/panel_blassed/BaseMainFrame.js:402:36)

Desktop (please complete the following information):

  • OS: Ubuntu Linux 21.04
@la9527
Copy link
Owner

la9527 commented May 10, 2021

I have reflected it in version 1.2.7.
Thank you for providing multiple patches.

@la9527 la9527 closed this as completed May 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants