Skip to content

Commit 5daad96

Browse files
authored
Merge pull request #36 from kchadha/escape-dot
fix(schema): escape '.' in regex patterns
2 parents c36b30c + 705d806 commit 5daad96

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/sb3_schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"md5ext": {
4747
"type": "string",
48-
"pattern": "^[a-fA-F0-9]{32}.[a-zA-Z]+$"
48+
"pattern": "^[a-fA-F0-9]{32}\\.[a-zA-Z]+$"
4949
},
5050
"name": {
5151
"type": "string"
@@ -79,7 +79,7 @@
7979
},
8080
"md5ext": {
8181
"type": "string",
82-
"pattern": "^[a-fA-F0-9]{32}.[a-zA-Z0-9]+$"
82+
"pattern": "^[a-fA-F0-9]{32}\\.[a-zA-Z0-9]+$"
8383
},
8484
"name": {
8585
"type": "string"
@@ -413,11 +413,11 @@
413413
"properties": {
414414
"semver": {
415415
"type": "string",
416-
"pattern": "^(3.[0-9]+.[0-9]+)$"
416+
"pattern": "^(3\\.[0-9]+\\.[0-9]+)$"
417417
},
418418
"vm": {
419419
"type": "string",
420-
"pattern": "^([0-9]+.[0-9]+.[0-9]+)($|-)"
420+
"pattern": "^([0-9]+\\.[0-9]+\\.[0-9]+)($|-)"
421421
},
422422
"agent": {
423423
"type": "string"

0 commit comments

Comments
 (0)