Skip to content

Commit bc6a4fe

Browse files
Merge pull request #5 from angular/master
docs(guide/expression): add clarification for RegExp literal in `ngPa…
2 parents ff09c52 + ecc09a4 commit bc6a4fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/content/guide/expression.ngdoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ 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
41+
RegExp.
4142

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

0 commit comments

Comments
 (0)