Skip to content

Commit 2f9a6ad

Browse files
committed
chore: eslint fix regex
1 parent 83b03e2 commit 2f9a6ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/link-paths.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
/* eslint-disable no-multi-str, prefer-const, func-names */
44
let linkPaths;
5-
const regex = /((?:\w:)?\/?(?:[-\w.]+\/)*[-\w.]+):(\d+)(?::(\d+))?/g;
5+
const regex = /((?:\w:)?\/?(?:[\w.-]+\/)*[\w.-]+):(\d+)(?::(\d+))?/g;
66
// ((?:\w:)?/? # Prefix of the path either '/' or 'C:/' (optional)
7-
// (?:[-\w.]+/)*[-\w.]+) # The path of the file some/file/path.ext
7+
// (?:[\w.-]+/)*[\w.-]+) # The path of the file some/file/path.ext
88
// :(\d+) # Line number prefixed with a colon
99
// (?::(\d+))? # Column number prefixed with a colon (optional)
1010

0 commit comments

Comments
 (0)