Commit 9ef4977b authored by Camil Staps's avatar Camil Staps 🐧

Test suite: no support for \- in a character class

parent eff50a43
......@@ -250,7 +250,7 @@
\= Expect no match
1IN SOA non-sp1 non-sp2(
/^[a-zA-Z\d][a-zA-Z\d\-]*(\.[a-zA-Z\d][a-zA-z\d\-]*)*\.$/
/^[a-zA-Z\d][a-zA-Z\d-]*(\.[a-zA-Z\d][a-zA-z\d-]*)*\.$/
a.
Z.
2.
......@@ -260,7 +260,7 @@
\= Expect no match
-abc.peq.
/^\*\.[a-z]([a-z\-\d]*[a-z\d]+)?(\.[a-z]([a-z\-\d]*[a-z\d]+)?)*$/
/^\*\.[a-z]([a-z\d-]*[a-z\d]+)?(\.[a-z]([a-z\d-]*[a-z\d]+)?)*$/
*.a
*.b0-a
*.c3-b.c
......
......@@ -467,7 +467,7 @@ No match
1IN SOA non-sp1 non-sp2(
No match
/^[a-zA-Z\d][a-zA-Z\d\-]*(\.[a-zA-Z\d][a-zA-z\d\-]*)*\.$/
/^[a-zA-Z\d][a-zA-Z\d-]*(\.[a-zA-Z\d][a-zA-z\d-]*)*\.$/
a.
0: a.
Z.
......@@ -487,7 +487,7 @@ No match
-abc.peq.
No match
/^\*\.[a-z]([a-z\-\d]*[a-z\d]+)?(\.[a-z]([a-z\-\d]*[a-z\d]+)?)*$/
/^\*\.[a-z]([a-z\d-]*[a-z\d]+)?(\.[a-z]([a-z\d-]*[a-z\d]+)?)*$/
*.a
0: *.a
*.b0-a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment