Skip to content

Commit 9d7db31

Browse files
author
Sascha Goldhofer
committed
Fix js replace on insert
1 parent 524af47 commit 9d7db31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

FuzzyFilePath.sublime-settings

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
["\\.js$", ""], // after insertion, remove .js from path
4242
["([^.])\\/index$", "\\1"], // nodejs will load index.js by default => also remove index
4343
// remove path to module-folder, since our build tool resolves this path automatically
44-
["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""]
44+
["^([\\/.]+)?\\/(bower_components|node_modules)\\/", ""]
4545
]
4646
},
4747
{
@@ -56,7 +56,7 @@
5656
"replace_on_insert": [
5757
["\\.js$", ""],
5858
["([^.])\\/index$", "\\1"],
59-
["^(\\/.+)?\\/(bower_components|node_modules)\\/", ""]
59+
["^([\\/.]+)?\\/(bower_components|node_modules)\\/", ""]
6060
]
6161
},
6262
{
@@ -146,7 +146,7 @@
146146
"prefix": ["src"],
147147
"tagName": ["script"],
148148
"auto": true,
149-
"base_directory": true,
149+
"base_directory": false,
150150
"extensions": ["js"],
151151
"relative": true
152152
},

0 commit comments

Comments
 (0)