We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83b03e2 commit 2f9a6adCopy full SHA for 2f9a6ad
lib/link-paths.js
@@ -2,9 +2,9 @@
2
3
/* eslint-disable no-multi-str, prefer-const, func-names */
4
let linkPaths;
5
-const regex = /((?:\w:)?\/?(?:[-\w.]+\/)*[-\w.]+):(\d+)(?::(\d+))?/g;
+const regex = /((?:\w:)?\/?(?:[\w.-]+\/)*[\w.-]+):(\d+)(?::(\d+))?/g;
6
// ((?:\w:)?/? # Prefix of the path either '/' or 'C:/' (optional)
7
-// (?:[-\w.]+/)*[-\w.]+) # The path of the file some/file/path.ext
+// (?:[\w.-]+/)*[\w.-]+) # The path of the file some/file/path.ext
8
// :(\d+) # Line number prefixed with a colon
9
// (?::(\d+))? # Column number prefixed with a colon (optional)
10
0 commit comments