This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
autocomplete: SyntaxError: Invalid regular expression when typing ( #11908
Closed
Description
Bug, enhancement request, or proposal
Bug
Demo and steps to reproduce the issue
Demo URL (required)*:
https://material.angularjs.org/latest/demo/autocomplete
Detailed Reproduction Steps
- input into Autocomplete the char
(
- check browser console
Explain the expected behavior
No errors is Browser Console.
Explain the current behavior
Error in Browser Console:
SyntaxError: Invalid regular expression: /^test (/: Unterminated group
at new RegExp (<anonymous>)
at ee.createRegex (angular-material.min.js:7)
at ee.onRender (angular-material.min.js:7)
at m.$digest (angular.js:19143)
at b.$apply (angular.js:19503)
at Object.$$debounceViewValueCommit (angular.js:30903)
at Object.$setViewValue (angular.js:30877)
at HTMLInputElement.l (angular.js:26518)
at sg (angular.js:3826)
at HTMLInputElement.d (angular.js:3814)
List the affected versions of AngularJS, Material, OS, and browsers
- AngularJS: 1.7.9
- AngularJS Material: 1.1.22 (1.1.21 - no bug)
- OS: Windows 10
- Browsers: Chrome
Add anything else we should know
This bug appeared after upgrade from v1.1.21 to v1.1.22