diff --git a/tools/doc/json.js b/tools/doc/json.js index 66e07b3512befb..bcba923d907fb2 100644 --- a/tools/doc/json.js +++ b/tools/doc/json.js @@ -456,8 +456,6 @@ const maybeAncestors = r`(?:${id}\.?)*`; const callWithParams = r`\([^)]*\)`; -const noCallOrProp = '(?![.[(])'; - const maybeExtends = `(?: +extends +${maybeAncestors}${classId})?`; /* eslint-disable max-len */ @@ -478,7 +476,7 @@ const headingExpressions = [ `^${maybeBacktick}${maybeAncestors}(${id})${callWithParams}${maybeBacktick}$`, 'i') }, { type: 'property', re: RegExp( - `^${maybeClassPropertyPrefix}${maybeBacktick}${ancestors}(${id})${maybeBacktick}${noCallOrProp}$`, 'i') }, + `^${maybeClassPropertyPrefix}${maybeBacktick}${ancestors}(${id})${maybeBacktick}$`, 'i') }, ]; /* eslint-enable max-len */