Skip to content

Commit 4a2867b

Browse files
committed
correctly escape the regex dots
1 parent 34b9a20 commit 4a2867b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

generator/config/expression/regexFindAll.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ tests:
7878
$regexFindAll:
7979
input: $comment
8080
regex: !bson_regex
81-
- '[a-z0-9_.+-]+@[a-z0-9_.+-]+\.[a-z0-9_.+-]+'
81+
- '[a-z0-9_.+-]+@[a-z0-9_.+-]+\\.[a-z0-9_.+-]+'
8282
- i
8383
- $set:
8484
email: $email.match
@@ -98,7 +98,7 @@ tests:
9898
$regexFindAll:
9999
input: $comment
100100
regex: !bson_regex
101-
- ([a-z0-9_.+-]+)@[a-z0-9_.+-]+\.[a-z0-9_.+-]+
101+
- ([a-z0-9_.+-]+)@[a-z0-9_.+-]+\\.[a-z0-9_.+-]+
102102
- i
103103
- $set:
104104
names:

0 commit comments

Comments
 (0)