Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / execall / index.js
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/execall/index.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/execall/index.js
new file mode 100644 (file)
index 0000000..f2723ab
--- /dev/null
@@ -0,0 +1,23 @@
+'use strict';
+var cloneRegexp = require('clone-regexp');
+
+module.exports = function (input, str) {
+       var match;
+       var matches = [];
+       var re = cloneRegexp(input);
+       var isGlobal = re.global;
+
+       while (match = re.exec(str)) {
+               matches.push({
+                       match: match[0],
+                       sub: match.slice(1),
+                       index: match.index
+               })
+
+               if (!isGlobal) {
+                       break;
+               }
+       }
+
+       return matches;
+};