Skip to content

Commit 3c0441d

Browse files
authored
1 parent e5ee0c2 commit 3c0441d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Despite Angular's awesomeness, validation in Angular is still annoying. Surprisi
7676
<input type = "text"
7777
name = "firstName"
7878
ng-model = "person.firstName"
79-
ng-pattern = "\regex\"
79+
ng-pattern = "/regex/"
8080
required>
8181
```
8282

@@ -85,7 +85,7 @@ Despite Angular's awesomeness, validation in Angular is still annoying. Surprisi
8585
<input type = "text"
8686
name = "firstName"
8787
ng-model = "person.firstName"
88-
ng-pattern = "\regex\"
88+
ng-pattern = "/regex/"
8989
invalid-message = "'Please enter the word regex'"
9090
required-message = "'First name is required'"
9191
required>

0 commit comments

Comments
 (0)