We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 664273c + 076404b commit a4e3180Copy full SHA for a4e3180
readme.md
@@ -123,7 +123,9 @@ The string or array you would like to do replacement on.
123
124
Type: `regexp|string`
125
126
-The string or RegExp you would like to replace within `string`. Note that when using a `RegExp` you **MUST** include a matching group.
+The string or RegExp you would like to replace within `string`.
127
+
128
+**NOTE:** When using a `RegExp` you **MUST** include a capturing group. (`/(hey)/g` is ok, `/hey/g` is not.)
129
130
Example: Replace all occurrences of `'hey'` with `<span>hey</span>`
131
0 commit comments