aboutsummaryrefslogtreecommitdiff
path: root/node_modules/html-minifier/src/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/html-minifier/src/utils.js')
-rw-r--r--node_modules/html-minifier/src/utils.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/html-minifier/src/utils.js b/node_modules/html-minifier/src/utils.js
deleted file mode 100644
index 62b43636d..000000000
--- a/node_modules/html-minifier/src/utils.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-function createMap(values, ignoreCase) {
- var map = {};
- values.forEach(function(value) {
- map[value] = 1;
- });
- return ignoreCase ? function(value) {
- return map[value.toLowerCase()] === 1;
- } : function(value) {
- return map[value] === 1;
- };
-}
-
-exports.createMap = createMap;
-exports.createMapFromString = function(values, ignoreCase) {
- return createMap(values.split(/,/), ignoreCase);
-};