Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / utils / hasLessInterpolation.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/hasLessInterpolation.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/stylelint/lib/utils/hasLessInterpolation.js
new file mode 100644 (file)
index 0000000..914c8b6
--- /dev/null
@@ -0,0 +1,16 @@
+/* @flow */
+"use strict";
+
+/**
+ * Check whether a string has less interpolation
+ *
+ * @param {string} string
+ * @return {boolean} If `true`, a string has less interpolation
+ */
+module.exports = function(string /*: string*/) /*: boolean*/ {
+  if (/@{.+?}/.test(string)) {
+    return true;
+  }
+
+  return false;
+};