We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mac OS X 10.12.5, Chrome 60, uiv 0.11.6
Typeahead
Use a special character (*, ?) in the typeahead input
Show strings that start with or contain the characters
[Vue warn]: Error in render function: "SyntaxError: Invalid regular expression: /*/: Nothing to repeat" found in ---> <Typeahead>
The text was updated successfully, but these errors were encountered:
I've currently fixed it in a fork by modifying the Highlight function in Typeahead.vue to:
highlight (item) { let value = this.itemKey ? item[this.itemKey] : item let inputValue = this.inputEl.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') return value.replace(new RegExp(`${inputValue}`, this.regexOptions), '<b>$&</b>') }
Sorry, something went wrong.
hi, sry for the late.
Thanks for your solution, if it works as expect, it's welcome to PR this.
No branches or pull requests
OS, browser, uiv version
Mac OS X 10.12.5, Chrome 60, uiv 0.11.6
Which component
Typeahead
Steps to reproduce the problem
Use a special character (*, ?) in the typeahead input
Expected behavior
Show strings that start with or contain the characters
Actual behavior
The text was updated successfully, but these errors were encountered: