We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 201c1a4 commit 8a4a988Copy full SHA for 8a4a988
docs/paramTypes.md
@@ -103,15 +103,15 @@ You can define a regex pattern to match the custom parameters:
103
104
```js
105
paramTypes: {
106
- custom: [{ regex: '\\{[a-zA-Z0-9_]+\\}' }];
+ custom: [{ regex: '\\{[a-zA-Z0-9_]+\\}' }],
107
}
108
```
109
110
Note the double backslashes. You can get around the double-escaping problem by using `String.raw`:
111
112
113
114
- custom: [{ regex: String.raw`\{[a-zA-Z0-9_]+\}` }];
+ custom: [{ regex: String.raw`\{[a-zA-Z0-9_]+\}` }],
115
116
117
0 commit comments