diff --git a/docs/.vitepress/createOGImage.ts b/docs/.vitepress/createOGImage.ts index 84098314c..c42a24053 100644 --- a/docs/.vitepress/createOGImage.ts +++ b/docs/.vitepress/createOGImage.ts @@ -57,7 +57,7 @@ export async function createIconOGImage(iconName: string, tags: string[]) { const data = { name: iconName, - tags: tags.join(' • ').replace(//g, '>').replace(/&/g, '&'), + tags: tags.join(' • ').replace(/&/g, '&').replace(//g, '>'), iconSVG, }; diff --git a/scripts/updateContributors.mts b/scripts/updateContributors.mts index 9e8e7a623..d8c91694b 100644 --- a/scripts/updateContributors.mts +++ b/scripts/updateContributors.mts @@ -57,7 +57,7 @@ const getContributors = async (file: string, includeCoAuthors?: boolean) => { } if (includeCoAuthors) { const matches = commit.body.matchAll( - /(^Author:|^Co-authored-by:)\s+(?[^<]+)\s+<(?[^>]+)>/gm, + /(^Author:|^Co-authored-by:)\s(?[^<]+)\s<(?[^>]+)>/gm, ); for (const match of matches) { diff --git a/tools/build-icons/utils/base64SVG.ts b/tools/build-icons/utils/base64SVG.ts index b4a833c7d..abd32f75e 100644 --- a/tools/build-icons/utils/base64SVG.ts +++ b/tools/build-icons/utils/base64SVG.ts @@ -1,7 +1,7 @@ const base64SVG = (svgContents: string) => Buffer.from( svgContents - .replace('\n', '') + .replaceAll('\n', '') .replace( 'stroke="currentColor"', 'stroke="#000" style="background-color: #fff; border-radius: 2px"',