Demo URL
https://tairo.cssninja.io/documentation/reference/forms/autocomplete#base-autocomplete-properties
What happened?
When you type a + key in the auto complete input box, it generates a console error, and the auto complete control becomes unusable.
Console error: SyntaxError: Invalid regular expression: /+/gi: Nothing to repeat (at BLiNDTvb.js:29:177635)
It seems to be generated because the code trying to highlight the results with the typed text is not escaping the + value when applying the regex.
Reproduction steps
1. Go to the demo URL
2. Type + in the input box
3. Check Developer Console for the error
Relevant log output
SyntaxError: Invalid regular expression: /+/gi: Nothing to repeat (at BLiNDTvb.js:29:177635)
at new RegExp (<anonymous>)
at BLiNDTvb.js:29:177635
at cf.fn (BLiNDTvb.js:15:9212)
at cf.run (BLiNDTvb.js:15:1517)
at get value (BLiNDTvb.js:15:9457)
at _ (BLiNDTvb.js:15:10406)
at CgZnhkeA.js:1:2565
at r (BLiNDTvb.js:19:3047)
at Se (BLiNDTvb.js:19:20156)
at BLiNDTvb.js:32:41805
What browsers are you seeing the problem on?
Chrome
What is your operating system?
Windows
Demo URL
https://tairo.cssninja.io/documentation/reference/forms/autocomplete#base-autocomplete-properties
What happened?
When you type a + key in the auto complete input box, it generates a console error, and the auto complete control becomes unusable.
Console error:
SyntaxError: Invalid regular expression: /+/gi: Nothing to repeat (at BLiNDTvb.js:29:177635)It seems to be generated because the code trying to highlight the results with the typed text is not escaping the + value when applying the regex.
Reproduction steps
Relevant log output
SyntaxError: Invalid regular expression: /+/gi: Nothing to repeat (at BLiNDTvb.js:29:177635) at new RegExp (<anonymous>) at BLiNDTvb.js:29:177635 at cf.fn (BLiNDTvb.js:15:9212) at cf.run (BLiNDTvb.js:15:1517) at get value (BLiNDTvb.js:15:9457) at _ (BLiNDTvb.js:15:10406) at CgZnhkeA.js:1:2565 at r (BLiNDTvb.js:19:3047) at Se (BLiNDTvb.js:19:20156) at BLiNDTvb.js:32:41805What browsers are you seeing the problem on?
Chrome
What is your operating system?
Windows