summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js')
-rw-r--r--tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js b/tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js
new file mode 100644
index 0000000000..45f9b449a7
--- /dev/null
+++ b/tools/node_modules/eslint/node_modules/remark-parse/lib/locate/escape.js
@@ -0,0 +1,15 @@
+/**
+ * @author Titus Wormer
+ * @copyright 2015 Titus Wormer
+ * @license MIT
+ * @module remark:parse:locate:escape
+ * @fileoverview Locate an escape.
+ */
+
+'use strict';
+
+module.exports = locate;
+
+function locate(value, fromIndex) {
+ return value.indexOf('\\', fromIndex);
+}