Visitar URL original
docs: tighten the group-body helper's description · webpack/webpack@bbb2f11 · GitHub
Skip to content

Commit bbb2f11

Browse files
docs: tighten the group-body helper's description
1 parent 2ea4dff commit bbb2f11

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎lib/rules/RuleSetCompiler.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -708,9 +708,8 @@ const splitAlternatives = (body) => {
708708
};
709709

710710
/**
711-
* The part of a group body the match spells: the body itself for a capturing
712-
* group, what follows the `?:` or `?<name>` prefix for the others, and nothing
713-
* for a lookaround, which says what surrounds the match rather than spelling it.
711+
* The part of a group body that the match spells — past a `?:` or `?<name>`
712+
* prefix, and nothing at all for a lookaround, which spells nothing.
714713
* @param {string} body group body without the enclosing parentheses
715714
* @returns {string | undefined} the spelled part, or `undefined` for a lookaround
716715
*/

0 commit comments

Comments
 (0)