Skip to content

Commit bce9616

Browse files
committed
refactor: encode uri component for rule expls too
1 parent 22d5c25 commit bce9616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/documentation/wiki-linter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ df[6, "value"]
180180
const certaintyText = `\`${textWithTooltip(rule.info.certainty, certaintyDoc)}\``;
181181
if(format === 'short') {
182182
ruleExplanations.set(name, () => Promise.resolve(`
183-
**[${rule.info.name}](${FlowrWikiBaseRef}/${getPageNameForLintingRule(name)}):** ${rule.info.description} [see ${shortLinkFile(ruleType, types)}]\\
183+
**[${rule.info.name}](${FlowrWikiBaseRef}/${encodeURIComponent(getPageNameForLintingRule(name))}):** ${rule.info.description} [see ${shortLinkFile(ruleType, types)}]\\
184184
${tags}
185185
186186
`.trim()));

0 commit comments

Comments
 (0)