components icon indicating copy to clipboard operation
components copied to clipboard

md-autocomplete error - Invalid regular expression unterminated group or end of pattern

Open MaxKorolkov opened this issue 9 years ago • 5 comments

Bug, feature request, or proposal:

I used md-autocomplete from this gide - https://material.angular.io/components/component/autocomplete

What is the expected behavior?

When i writing this symbols '/()' i've got console.error ' Invalid regular expression: {my value}: at end of pattern' or 'Invalid regular expression: {my value}: Unterminated group' My application is being stopped because of this.

What are the steps to reproduce?

I need a solution without errors

What is the use-case or motivation for changing an existing behavior?

It's strange, bit this example https://material.angular.io/components/component/autocomplete causes an error in a similar case too

MaxKorolkov avatar May 15 '17 12:05 MaxKorolkov

See #4440

willshowell avatar May 15 '17 13:05 willshowell

@willshowell Good! it's work if i don't use RegExp

MaxKorolkov avatar May 15 '17 14:05 MaxKorolkov

Should be closed via https://github.com/angular/material2/pull/4921

willshowell avatar Jun 12 '17 20:06 willshowell

Should be resolved in master.

crisbeto avatar Jun 23 '17 17:06 crisbeto

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.