some deletions
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / containsString.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/containsString.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/containsString.js
deleted file mode 100644 (file)
index be50290..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* @flow */
-"use strict";
-
-/**
- * Checks if a string contains a value. The comparison value can be a string or
- * an array of strings.
- *
- * Any strings starting and ending with `/` are ignored. Use the
- * matchesStringOrRegExp() util to match regexes.
- */
-module.exports = function containsString(
-  input /*: string*/,
-  comparison /*: string | Array<string>*/
-) /*: false | { match: string, pattern: string }*/ {
-  if (!Array.isArray(comparison)) {
-    return testAgainstString(input, comparison);
-  }
-
-  for (const comparisonItem of comparison) {
-    const testResult = testAgainstString(input, comparisonItem);
-    if (testResult) {
-      return testResult;
-    }
-  }
-  return false;
-};
-
-function testAgainstString(value, comparison) {
-  if (!comparison) return false;
-  if (comparison[0] === "/" && comparison[comparison.length - 1] === "/") {
-    return false;
-  }
-
-  if (value.indexOf(comparison) >= 0) {
-    return { match: value, pattern: comparison };
-  }
-
-  return false;
-}