diff options
Diffstat (limited to 'node_modules/clean-css/lib/reader/normalize-path.js')
| -rw-r--r-- | node_modules/clean-css/lib/reader/normalize-path.js | 8 |
1 files changed, 8 insertions, 0 deletions
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; |
