File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -941,7 +941,7 @@ namespace ts {
941
941
* Regex for the ** wildcard. Matches any number of subdirectories. When used for including
942
942
* files or directories, does not match subdirectories that start with a . character
943
943
*/
944
- const doubleAsteriskRegexFragment = usage === "exclude" ? "(/.+?)?" : "(/[^/.][^/]*)*?"
944
+ const doubleAsteriskRegexFragment = usage === "exclude" ? "(/.+?)?" : "(/[^/.][^/]*)*?" ;
945
945
946
946
let pattern = "" ;
947
947
let hasWrittenSubpattern = false ;
@@ -987,11 +987,11 @@ namespace ts {
987
987
// The * and ? wildcards should not match directories or files that start with . if they
988
988
// appear first in a component. Dotted directories and files can be included explicitly
989
989
// like so: **/.*/.*
990
- if ( startsWith ( component , "*" ) ) {
990
+ if ( component . indexOf ( "*" ) === 0 ) {
991
991
subpattern += "([^./]" + singleAsteriskRegexFragment + ")?" ;
992
992
component = component . substr ( 1 ) ;
993
993
}
994
- else if ( startsWith ( component , "?" ) ) {
994
+ else if ( component . indexOf ( "?" ) === 0 ) {
995
995
subpattern += "[^./]" ;
996
996
component = component . substr ( 1 ) ;
997
997
}
You can’t perform that action at this time.
0 commit comments