From 24fa0d047729f8be523129f212620efd1e7fb6af Mon Sep 17 00:00:00 2001 From: Kai Salmen Date: Mon, 12 Sep 2022 14:53:17 +0200 Subject: [PATCH] Improve codion.ttf replace --- packages/sprotty/build/src/buildCodicon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sprotty/build/src/buildCodicon.js b/packages/sprotty/build/src/buildCodicon.js index 373e6e0b..28ad3e1c 100644 --- a/packages/sprotty/build/src/buildCodicon.js +++ b/packages/sprotty/build/src/buildCodicon.js @@ -17,7 +17,7 @@ function transformCodicon() { return; } const ttfData = `data:font/ttf;base64,${dataTtf}`; - let alteredCssData = cssData.replace('"./codicon.ttf?0e5b0adf625a37fbcd638d31f0fe72aa"', ttfData); + let alteredCssData = cssData.replace(/\"\.\/codicon\.ttf.*\"/gi, ttfData); const licRef = `/* See license here: * https://github.com/microsoft/vscode-codicons/blob/main/LICENSE-CODE * https://github.com/microsoft/vscode-codicons/blob/main/LICENSE