Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Md2Autocomplete don´t escape special characters on input in regex when insert '+' #314

Open
l2radamanthys opened this issue Feb 23, 2018 · 0 comments

Comments

@l2radamanthys
Copy link

Bug Md2Autocomplete don´t escape special characters on input in regex when insert '+'

core.es5.js:1084 ERROR SyntaxError: Invalid regular expression: /+/: Nothing to repeat
at new RegExp ()
at autocomplete.js:313
at Array.filter ()
at Md2Autocomplete.webpackJsonp.../../../../Md2/autocomplete/autocomplete.js.Md2Autocomplete.updateItems (autocomplete.js:313)
at autocomplete.js:233
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:414)
at Object.onInvokeTask (core.es5.js:4116)
at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:413)
at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:181)
at ZoneTask.invoke (zone.js:476)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant