Skip to content

Commit 66a22ca

Browse files
committed
Merge pull request #91 from ctjhoa/add_test
Add test string filter
2 parents d28dece + a294b04 commit 66a22ca

File tree

7 files changed

+151
-69
lines changed

7 files changed

+151
-69
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,14 @@ Repeats a string n times<br/>
10801080
<!--repeat:
10811081
foo-foo-foo
10821082
```
1083+
###test
1084+
Test if a string match a pattern<br/>
1085+
**Usage:** ```string | test: pattern: flag[optional]```
1086+
```html
1087+
<p>{{ '15/12/2003' | test: '^[0-9]{2}[/]{1}[0-9]{2}[/]{1}[0-9]{4}$': 'i' }}</p>
1088+
<!--result:
1089+
true
1090+
```
10831091
#Math
10841092
10851093
###max

0 commit comments

Comments
 (0)