Skip to content

Commit e78bbeb

Browse files
authored
Merge branch 'main' into revert-831-smockle/update-docs-for-classic-PAT
2 parents 158aa14 + bd3f80e commit e78bbeb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/actions/find/src/findForUrl.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ export async function findForUrl(url: string): Promise<Finding[]> {
1515
scannerType: 'axe',
1616
url,
1717
html: violation.nodes[0].html,
18-
problemShort: violation.help.toLowerCase(),
19-
problemUrl: violation.helpUrl,
18+
problemShort: violation.help.toLowerCase().replace(/[']/g, '’'),
19+
problemUrl: violation.helpUrl.replace(/[']/g, '’'),
2020
ruleId: violation.id,
21-
solutionShort: violation.description.toLowerCase(),
22-
solutionLong: violation.nodes[0].failureSummary
21+
solutionShort: violation.description.toLowerCase().replace(/[']/g, '’'),
22+
solutionLong: violation.nodes[0].failureSummary?.replace(/[']/g, '’')
2323
}));
2424
} catch (e) {
2525
// do something with the error

0 commit comments

Comments
 (0)