Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Typeahead wants value to be a valid regex #316

Closed
v3rm0n opened this issue Apr 11, 2013 · 1 comment
Closed

Typeahead wants value to be a valid regex #316

v3rm0n opened this issue Apr 11, 2013 · 1 comment

Comments

@v3rm0n
Copy link

v3rm0n commented Apr 11, 2013

When my data is not a valid regex, Typeahead throws an error:

SyntaxError: Invalid regular expression: /Alabama (Something/: Unterminated group
    at new RegExp (<anonymous>)
    at Object.<anonymous> (http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.2.0.js:1695:42)
    at fnInvoke (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:6101:21)
    at OPERATORS.| (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:5730:59)
    at Object.get (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:6049:14)
    at Object.Scope.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:7871:38)
    at Object.Scope.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:8079:24)
    at HTMLInputElement.listener (http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:11421:13)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.js:1958:10
    at Array.forEach (native) 

http://plnkr.co/edit/EJGu3u
Start typing, choose a value, delete closing parenthesis

@pkozlowski-opensource
Copy link
Member

Wooops, definitively a bug, thnx for reporting!

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

2 participants