From 1568a320609701d678325444fdb0526150ab7a0e Mon Sep 17 00:00:00 2001 From: Aben <5195693+rushairer@users.noreply.github.com> Date: Fri, 9 Aug 2019 14:58:58 +0800 Subject: [PATCH] [Changed]Change support \\eXXX chars --- src/lib.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.ts b/src/lib.ts index c68525f..cef7ccf 100644 --- a/src/lib.ts +++ b/src/lib.ts @@ -24,9 +24,9 @@ export const mapCss = (data: any, debug?: boolean): object => { }; export const cleanValue = (val: string): string | void => { - const matches = val.match(/content\s*:\s*"\\f([^"]+)"/i); + const matches = val.match(/content\s*:\s*"\\([^"]+)"/i); if (matches) { - return `\\uf${matches[1]}`; + return `\\u${matches[1]}`; } return void 0; };