Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a8cd283

Browse files
author
Dallon Feldner
committed
Fixed relative pathname regex
1 parent ff315a9 commit a8cd283

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = function setupHook({
8484
*/
8585
function fetch(_to, from) {
8686
// getting absolute path to the processing file
87-
const filename = /\w/i.test(_to[0])
87+
const filename = /[^\\/?%*:|"<>\.]/i.test(_to[0])
8888
? require.resolve(_to)
8989
: resolve(dirname(from), _to);
9090

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /