From 1e9ee786ea0623f0c344b3e9ebef198de196b08e Mon Sep 17 00:00:00 2001 From: eight Date: Mon, 18 Sep 2017 08:16:11 +0800 Subject: [PATCH] Fix: normalize new line --- js/usercss.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/usercss.js b/js/usercss.js index 5f67f815..eb1a31dd 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -414,6 +414,8 @@ var usercss = (function () { } function _buildMeta(sourceCode) { + sourceCode = sourceCode.replace(/\r\n?/g, '\n'); + const usercssData = { vars: {} };