зеркало из https://github.com/mozilla/pluotsorbet.git
require filter to match from beginning to end
This commit is contained in:
Родитель
efd059697f
Коммит
01f4c39cf9
|
@ -330,7 +330,8 @@ function(jPath, filterArray, includeHidden) {
|
|||
// Transform * to .+
|
||||
filter = filter.replace(/\*/g, ".*");
|
||||
|
||||
filter += "$";
|
||||
// Require filter to match from the beginning to the end.
|
||||
filter = "^" + filter + "$";
|
||||
}
|
||||
|
||||
fs.list(path, function(error, files) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче