Skip to content

Commit

Permalink
Link patching now picks up multiple in single line (#5163)
Browse files Browse the repository at this point in the history
  • Loading branch information
avodovnik committed Jan 28, 2021
1 parent 321a873 commit f2ef7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/doclint/documentation.js
Expand Up @@ -612,7 +612,7 @@ function patchLinks(spec, classesMap, membersMap, linkRenderer) {
if (p1 === 'option')
return linkRenderer({ option: p2 }) || match;
});
node.text = node.text.replace(/\[([\w]+)\]/, (match, p1) => {
node.text = node.text.replace(/\[([\w]+)\]/g, (match, p1) => {
const clazz = classesMap.get(p1);
if (clazz)
return linkRenderer({ clazz }) || match;
Expand Down

0 comments on commit f2ef7f5

Please sign in to comment.