Skip to content

Commit

Permalink
Fix code scanning alert no. 21: Overly permissive regular expression …
Browse files Browse the repository at this point in the history
…range (genius-invokation#100)

* Fix code scanning alert no. 21: Overly permissive regular expression range

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Fix code scanning alert no. 20: Overly permissive regular expression range

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 806c034 commit 0e700aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/static-data/scripts/characters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export async function collateCharacters(
)!.cardPrefabName;
const cardFace = `UI_${cardPrefabName}`;
const icon = cardFace.replace(
/CardFace_Char_([a-zA-Z]+)_([a-zA-z]+)$/,
/CardFace_Char_([a-zA-Z]+)_([a-zA-Z]+)$/,
(match, p1, p2) => {
return `Char_${p1}Icon_${CARDFACE_TO_AVATAR_MAP[p2] ?? p2}`;
},
Expand Down
2 changes: 1 addition & 1 deletion packages/static-data/scripts/hakushin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const collateCharacter = async (

const cardFace: string = rawJson.Icon;
const icon = cardFace.replace(
/CardFace_Char_([a-zA-Z]+)_([a-zA-z]+)$/,
/CardFace_Char_([a-zA-Z]+)_([a-zA-Z]+)$/,
(match, p1, p2) => {
return `Char_${p1}Icon_${p2}`;
},
Expand Down

0 comments on commit 0e700aa

Please sign in to comment.