Skip to content

Commit

Permalink
Fix methods matching in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed May 20, 2024
1 parent 2e4436b commit ce1cf59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/discovery/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function processChangelog(changelog, methods) {
if (token.type === 'list') {
for (let item of token.items) {
const [typeOfChange] = item.text.match(/^\S+/);
const prelude = item.text.split(/;|\b\.\B/)[0].replace(/\((?:`[^`]+`|[^)])*\)\s*/g, m => m.trim().length === 2 ? '()' : '');
const prelude = item.text.split(/;|\b\.\B/)[0].replace(/\B\((?:`[^`]+`|[^)])*\)\s*/g, m => m.trim().length === 2 ? '()' : '');
const methodRefs =
prelude.match(/`[a-z\d]+\([^\)]*?\)`(?=(?:\s*(?:and|,)\s*`[a-z\d]+\([^\)]*?\)`)*\s*method)/ig) ||
prelude.match(/(?<=methods?\s*(?::\s*)?(?:`[a-z\d]+\([^\)]*?\)`\s*(?:and|,)\s*)*)`[a-z\d]+\([^\)]*?\)`/ig);
Expand Down

0 comments on commit ce1cf59

Please sign in to comment.