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

Commit f288e73

Browse files
committed
docs(guide/expression): add calrification for RegExp in ngPattern
`ngPattern` accepts only valid regExp pattern, hence it should be excepted from the `No RegExp Creation With Literal Notation` rule.
1 parent 3651e42 commit f288e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/guide/expression.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ AngularJS expressions are like JavaScript expressions with the following differe
3737
even inside `ng-init` directive.
3838

3939
* **No RegExp Creation With Literal Notation:** You cannot create regular expressions
40-
in an AngularJS expression.
40+
in an AngularJS expression. An exception to this rule is {@link ngPattern `ng-pattern`} which accepts valid RegExp.
4141

4242
* **No Object Creation With New Operator:** You cannot use `new` operator in an AngularJS expression.
4343

0 commit comments

Comments
 (0)