Skip to content

Commit 9237950

Browse files
Apply suggestions from code review
Co-authored-by: Mathias Bynens <[email protected]>
1 parent adaa5c4 commit 9237950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ These options can be set to `false` or `'transform'`. When using `'transform'`,
109109

110110
```js
111111
rewritePattern('(?<name>.)\\k<name>', '', {
112-
namedGroup: "transform"
112+
namedGroup: 'transform'
113113
});
114114
// → '(.)\1'
115115
```
@@ -143,7 +143,7 @@ NOTE: Currently regexpu doesn't support any ECMAScript proposal
143143
### Caveats
144144

145145
- [Lookbehind assertions](https://github.com/tc39/proposal-regexp-lookbehind) cannot be transformed to older syntax.
146-
- When using `namedGroups: 'transform'`, _regexpu-core_ only takes care of the _syntax_: you will still need a runtime wrapper around the regular expression to populate the `.groups` property of `RegExp.prototype.match()`'s result. If you are using _regexpu-core_ via Babel, it's handled automatically.
146+
- When using `namedGroups: 'transform'`, _regexpu-core_ only takes care of the _syntax_: you still need a runtime wrapper around the regular expression to populate the `.groups` property of `RegExp.prototype.match()`'s result. If you are using _regexpu-core_ via Babel, it's handled automatically.
147147

148148
## Author
149149

0 commit comments

Comments
 (0)