From 36162e984105ea8f59665c6ca05a9e71c3c6a835 Mon Sep 17 00:00:00 2001 From: Srdjan Radosavljevic Date: Thu, 12 Sep 2024 21:21:40 +0200 Subject: [PATCH 1/3] Fix octal escape sequences --- .idea/.gitignore | 5 +++++ src/vanilla.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..b58b603f --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/src/vanilla.ts b/src/vanilla.ts index d3cc0d99..1672a3b8 100644 --- a/src/vanilla.ts +++ b/src/vanilla.ts @@ -97,7 +97,7 @@ export const classesArray = (args:string[]|string[][]):string[] => { var classes:string[] = []; iterate( args, (_classes) =>{ if( typeof _classes === 'string' ){ - _classes = _classes.trim().split(/[\11\12\14\15\40]/); + _classes = _classes.trim().split(/[\x09\x0A\x0C\x0D\x20]/); } if( Array.isArray(_classes) ){ classes = classes.concat(_classes); From c30150ed04a4ce770f6d2df69b64533b4084e36d Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Thu, 14 Nov 2024 13:15:14 -0800 Subject: [PATCH 2/3] Delete .idea/.gitignore --- .idea/.gitignore | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 .idea/.gitignore diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index b58b603f..00000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ From 052b42d954693ae3272b931925c71b0da0b5f8bc Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Thu, 14 Nov 2024 13:16:56 -0800 Subject: [PATCH 3/3] Update src/vanilla.ts --- src/vanilla.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vanilla.ts b/src/vanilla.ts index 1672a3b8..c77e7a7a 100644 --- a/src/vanilla.ts +++ b/src/vanilla.ts @@ -97,7 +97,7 @@ export const classesArray = (args:string[]|string[][]):string[] => { var classes:string[] = []; iterate( args, (_classes) =>{ if( typeof _classes === 'string' ){ - _classes = _classes.trim().split(/[\x09\x0A\x0C\x0D\x20]/); + _classes = _classes.trim().split(/[\t\n\f\r\s]/); } if( Array.isArray(_classes) ){ classes = classes.concat(_classes);