diff options
Diffstat (limited to 'deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js')
-rw-r--r-- | deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js b/deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js index c74f1fecdc..0baa0e07eb 100644 --- a/deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js +++ b/deps/npm/node_modules/postcss-selector-parser/dist/util/stripComments.js @@ -2,26 +2,20 @@ exports.__esModule = true; exports["default"] = stripComments; - function stripComments(str) { var s = ""; var commentStart = str.indexOf("/*"); var lastEnd = 0; - while (commentStart >= 0) { s = s + str.slice(lastEnd, commentStart); var commentEnd = str.indexOf("*/", commentStart + 2); - if (commentEnd < 0) { return s; } - lastEnd = commentEnd + 2; commentStart = str.indexOf("/*", lastEnd); } - s = s + str.slice(lastEnd); return s; } - module.exports = exports.default;
\ No newline at end of file |