Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

highlight filter broken for numeric items #1400

Closed
dontgitit opened this issue Jan 23, 2016 · 0 comments · Fixed by #1402
Closed

highlight filter broken for numeric items #1400

dontgitit opened this issue Jan 23, 2016 · 0 comments · Fixed by #1402

Comments

@dontgitit
Copy link
Contributor

#1281 fixed for numeric matchItem; however it's still broken with a numeric query. Can use the same fix as for matchItem;

https://github.com/angular-ui/ui-select/blob/master/src/common.js#L132

    return queryToEscape.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');

to

    return ('' + queryToEscape).replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant