Skip to content

Commit

Permalink
chore: tweak regex used in e2e tests (#13129)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biki-das authored Aug 22, 2022
1 parent 8c56d74 commit ae2bed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,10 @@ export const normalizeIcons = (str: string) => {
return str;
}

// Make sure to keep in sync with `jest-cli/src/constants`
// Make sure to keep in sync with `jest-util/src/specialChars`
return str
.replace(new RegExp('\u00D7', 'g'), '\u2715')
.replace(new RegExp('\u221A', 'g'), '\u2713');
.replace(new RegExp('\u00D7', 'gu'), '\u2715')
.replace(new RegExp('\u221A', 'gu'), '\u2713');
};

// Certain environments (like CITGM and GH Actions) do not come with mercurial installed
Expand Down

0 comments on commit ae2bed7

Please sign in to comment.