diff --git a/.github/actions/find/src/findForUrl.ts b/.github/actions/find/src/findForUrl.ts index c1946454..5e2cd7ed 100644 --- a/.github/actions/find/src/findForUrl.ts +++ b/.github/actions/find/src/findForUrl.ts @@ -16,12 +16,12 @@ export async function findForUrl(url: string, authContext?: AuthContext): Promis findings = rawFindings.violations.map(violation => ({ scannerType: 'axe', url, - html: violation.nodes[0].html, - problemShort: violation.help.toLowerCase().replace(/[']/g, '’'), - problemUrl: violation.helpUrl.replace(/[']/g, '’'), + html: violation.nodes[0].html.replace(/'/g, "'"), + problemShort: violation.help.toLowerCase().replace(/'/g, "'"), + problemUrl: violation.helpUrl.replace(/'/g, "'"), ruleId: violation.id, - solutionShort: violation.description.toLowerCase().replace(/[']/g, '’'), - solutionLong: violation.nodes[0].failureSummary?.replace(/[']/g, '’') + solutionShort: violation.description.toLowerCase().replace(/'/g, "'"), + solutionLong: violation.nodes[0].failureSummary?.replace(/'/g, "'") })); } catch (e) { // do something with the error