Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

fix(ngPattern): allow modifiers on inline ng-pattern #2294

Closed
wants to merge 1 commit into from
Closed

fix(ngPattern): allow modifiers on inline ng-pattern #2294

wants to merge 1 commit into from

Conversation

austingreco
Copy link
Contributor

Add support for regex modifiers on inline ng-pattern. ng-pattern="/abc/i"

Closes #1437

Add support for regex modifiers on inline `ng-pattern`.
`ng-pattern="/regex/i"` now validates correctly.

Closes #1437
@ghost ghost assigned vojtajina Apr 11, 2013
@@ -496,9 +508,9 @@ describe('input', function() {
changeInputValueTo('x');
expect(inputElm).toBeInvalid();

scope.regexp = /abc?/;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm reverting this unit test. No reason to change it.

@vojtajina
Copy link
Contributor

Thanks @austingreco, did you sign the CLA before ? If not, please do so and I'm gonna merge it in.

@austingreco
Copy link
Contributor Author

yep! Filled it out before submitting the pull request.

@vojtajina
Copy link
Contributor

Merged as 12b6deb

Thanks @austingreco

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 this pull request may close these issues.

ng-pattern does not support modifiers
2 participants