Skip to content

Commit 8f6c24b

Browse files
Fix missing backslash in regex
1 parent 0f72c49 commit 8f6c24b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/name_style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
```json
7373
"local_name_style": {
7474
"type" : "pattern",
75-
"param": "m_(w+)",
75+
"param": "m_(\\w+)",
7676
"$1": "camel_case"
7777
}
7878
```
@@ -88,7 +88,7 @@
8888
"camel_case",
8989
{
9090
"type" : "pattern",
91-
"param": "m_(w+)",
91+
"param": "m_(\\w+)",
9292
"$1": "camel_case"
9393
}
9494
]

docs/name_style_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Regular expressions support capture groups and then match basic nomenclature:
7272
```json
7373
"local_name_style": {
7474
"type" : "pattern",
75-
"param": "m_(w+)",
75+
"param": "m_(\\w+)",
7676
"$1": "camel_case"
7777
}
7878
```
@@ -88,7 +88,7 @@ Where `"$1": "camel_case"` means that the content of the first capture group nee
8888
"camel_case",
8989
{
9090
"type" : "pattern",
91-
"param": "m_(w+)",
91+
"param": "m_(\\w+)",
9292
"$1": "camel_case"
9393
}
9494
]

0 commit comments

Comments
 (0)