Skip to content
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
@Nickproger

Description

@Nickproger

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

  1. input into Autocomplete the char (
  2. 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

Screenshots

image

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.has: Pull RequestA PR has been created to address this issueresolution: fixedseverity: regressionThis issue is related to a regressiontype: bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions