Skip to content

Commit fb7740a

Browse files
committed
fix: Replace single quotes with typographical quotes to avoid syntax errors
1 parent 60ad8c7 commit fb7740a

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)