mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Add support for file name to contain [some word] (#1166)
* Add support for file name to contain [some word]
This commit is contained in:
parent
76f8b39f0c
commit
e621b83c83
@ -9,7 +9,7 @@ function getComponentFiles(filename) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let nameNoExt = path.basename(filename, ext);
|
||||
let nameNoExt = path.basename(filename, ext).replace(/\[[^\]]*\]?$/, "");
|
||||
|
||||
let isEntry = "index" === nameNoExt;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user