* [html5] fix trimComment.

Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/c10a0f0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/c10a0f0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/c10a0f0b

Branch: refs/heads/0.12-dev
Commit: c10a0f0b30c94ee3ed0843b3ced2e4f41e29f92b
Parents: 944e9b1
Author: MrRaindrop <tekk...@gmail.com>
Authored: Tue Apr 18 16:19:31 2017 +0800
Committer: MrRaindrop <tekk...@gmail.com>
Committed: Tue Apr 18 16:19:31 2017 +0800

----------------------------------------------------------------------
 html5/render/vue/utils/style.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/c10a0f0b/html5/render/vue/utils/style.js
----------------------------------------------------------------------
diff --git a/html5/render/vue/utils/style.js b/html5/render/vue/utils/style.js
index 41530d3..7b51f29 100644
--- a/html5/render/vue/utils/style.js
+++ b/html5/render/vue/utils/style.js
@@ -34,7 +34,7 @@ const noUnitsNumberKeys = [
  * remove comments from a cssText.
  */
 export function trimComment (cssText: string): string {
-  return cssText.replace(/(?:\/\*)[^*]*\*\//g, '')
+  return cssText.replace(/(?:\/\*).*\*\//g, '')
 }
 
 let support: boolean | null = null

Reply via email to