Skip to content

Commit

Permalink
Remove stray quote mark
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Jul 22, 2024
1 parent 7bd0ee4 commit e36c7b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ console.log(match.groups);
<details>
<summary>👉 <b>Show more details</b></summary>

- Only one definition group is allowed per regex, and it must appear at the end of its pattern. Trailing whitespace and comments are allowed by implicit flag <kbd>x</kbd>.
- Only one definition group is allowed per regex, and it must appear at the end of its pattern (trailing whitespace and comments are allowed by implicit flag <kbd>x</kbd>).
- At the top level of definition groups, only named groups, whitespace, and comments are allowed.
- Within definition groups, all named groups must use unique names, and all are excluded from the `groups` object of resulting matches.
- The word `DEFINE` must appear in uppercase.
Expand Down
2 changes: 1 addition & 1 deletion src/subroutines.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function processDefinitionGroup(expression, namedGroups) {
}
}
if (duplicateName) {
throw new Error(`Duplicate group name "${duplicateName}" within DEFINE"`);
throw new Error(`Duplicate group name "${duplicateName}" within DEFINE`);
}
contentsToken.lastIndex = group.afterPos;
continue;
Expand Down

0 comments on commit e36c7b1

Please sign in to comment.