File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Takes a string and returns the part of the path before the glob begins. Be aware
44
44
45
45
The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
46
46
47
- - ` ? ` (question mark)
47
+ - ` ? ` (question mark) unless used as a path segment alone
48
48
- ` * ` (asterisk)
49
49
- ` | ` (pipe)
50
50
- ` ( ` (opening parenthesis)
Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ describe('glob-parent', function() {
47
47
assert . equal ( gp ( 'path/*(to|from)' ) , 'path' ) ;
48
48
assert . equal ( gp ( 'path/@(to|from)' ) , 'path' ) ;
49
49
assert . equal ( gp ( 'path/!/foo' ) , 'path/!' ) ;
50
- assert . equal ( gp ( 'path/?/foo' ) , 'path' , 'qmarks must be escaped ') ;
50
+ assert . equal ( gp ( 'path/?/foo' ) , 'path/? ' ) ;
51
51
assert . equal ( gp ( 'path/+/foo' ) , 'path/+' ) ;
52
52
assert . equal ( gp ( 'path/*/foo' ) , 'path' ) ;
53
53
assert . equal ( gp ( 'path/@/foo' ) , 'path/@' ) ;
54
54
assert . equal ( gp ( 'path/!/foo/' ) , 'path/!/foo' ) ;
55
- assert . equal ( gp ( 'path/?/foo/' ) , 'path' , 'qmarks must be escaped ') ;
55
+ assert . equal ( gp ( 'path/?/foo/' ) , 'path/?/foo ' ) ;
56
56
assert . equal ( gp ( 'path/+/foo/' ) , 'path/+/foo' ) ;
57
57
assert . equal ( gp ( 'path/*/foo/' ) , 'path' ) ;
58
58
assert . equal ( gp ( 'path/@/foo/' ) , 'path/@/foo' ) ;
You can’t perform that action at this time.
0 commit comments