From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/clean-css/lib/reader/normalize-path.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 node_modules/clean-css/lib/reader/normalize-path.js (limited to 'node_modules/clean-css/lib/reader/normalize-path.js') diff --git a/node_modules/clean-css/lib/reader/normalize-path.js b/node_modules/clean-css/lib/reader/normalize-path.js new file mode 100644 index 00000000..a9eca38c --- /dev/null +++ b/node_modules/clean-css/lib/reader/normalize-path.js @@ -0,0 +1,8 @@ +var UNIX_SEPARATOR = '/'; +var WINDOWS_SEPARATOR_PATTERN = /\\/g; + +function normalizePath(path) { + return path.replace(WINDOWS_SEPARATOR_PATTERN, UNIX_SEPARATOR); +} + +module.exports = normalizePath; -- cgit v1.2.3