shabados / presenter

Desktop app for presenting the Shabad OS Database on projectors, TVs, and live streams
https://shabados.com
MIT License
19 stars 15 forks source link

backslash \ char at end of full-words search query #541

Open bhajneet opened 4 years ago

bhajneet commented 4 years ago

https://github.com/ShabadOS/desktop/blob/dev/app/frontend/src/Controller/Search.js#L60

Maybe because of regex in L101 of above file? Cannot use regex chars in search query with this?

#jwnI sMq kI i\ image

saihaj commented 4 years ago

Breaks in first letter search too (an example: ss\). Essentially putting \ at end of line will break it SyntaxError: Invalid regular expression: \ at end of pattern