From 5c250d4470368f6599d94636733b3da454be55a7 Mon Sep 17 00:00:00 2001 From: Tim van der Lippe Date: Mon, 7 Aug 2017 20:50:10 -0700 Subject: [PATCH] Allow arbitrary whitespace in CSS imports --- lib/utils/style-gather.html | 2 +- test/unit/custom-style-import.html | 3 ++- test/unit/custom-style.html | 5 +++++ test/unit/sub/style-import.html | 10 ++++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/lib/utils/style-gather.html b/lib/utils/style-gather.html index 7a2bb37c50..56a5a5493c 100644 --- a/lib/utils/style-gather.html +++ b/lib/utils/style-gather.html @@ -46,7 +46,7 @@ * @this {StyleGather} */ cssFromModules(moduleIds) { - let modules = moduleIds.trim().split(' '); + let modules = moduleIds.trim().split(/\s+/); let cssText = ''; for (let i=0; i < modules.length; i++) { cssText += this.cssFromModule(modules[i]); diff --git a/test/unit/custom-style-import.html b/test/unit/custom-style-import.html index f631c60d42..eb8503cce7 100644 --- a/test/unit/custom-style-import.html +++ b/test/unit/custom-style-import.html @@ -30,7 +30,8 @@ - + + + + \ No newline at end of file