Skip to content

Commit 9e5104b

Browse files
committed
fix: correct escape character in definitions
1 parent 16ae9a9 commit 9e5104b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

definitions/rest/data_type/type.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"name": [
88
{
99
"code": "en-US",
10-
"content": "HTTP Method",
10+
"content": "HTTP Method"
1111
}
1212
],
1313
"rules": [
@@ -30,13 +30,13 @@
3030
"name": [
3131
{
3232
"code": "en-US",
33-
"content": "HTTP Route",
33+
"content": "HTTP Route"
3434
}
3535
],
3636
"rules": [
3737
{
3838
"regex": {
39-
"pattern": "/^\/\w+(?:[.:~-]\w+)*(?:\/\w+(?:[.:~-]\w+)*)*$/"
39+
"pattern": "/^\/\\w+(?:[.:~-]\\w+)*(?:\/\\w+(?:[.:~-]\\w+)*)*$/"
4040
}
4141
}
4242
],

definitions/standard/data_type/primitive.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"rules": [
1616
{
1717
"regex": {
18-
"pattern": "/^(?:-(?:[1-9](?:\d{0,2}(?:,\d{3})+|\d*))|(?:0|(?:[1-9](?:\d{0,2}(?:,\d{3})+|\d*))))(?:.\d+|)$/"
18+
"pattern": "/^(?:-(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))|(?:0|(?:[1-9](?:\\d{0,2}(?:,\\d{3})+|\\d*))))(?:.\\d+|)$/"
1919
}
2020
}
2121
],
@@ -39,7 +39,7 @@
3939
"rules": [
4040
{
4141
"regex": {
42-
"pattern": "[\s\S]*"
42+
"pattern": "[\\s\\S]*"
4343
}
4444
}
4545
],

0 commit comments

Comments
 (0)