globs: simpler separator regexp.

windows-drag
John Benediktsson 2019-03-17 13:13:27 -07:00
parent 9f0bce7622
commit 31f309a829
1 changed files with 2 additions and 2 deletions

View File

@ -7,10 +7,10 @@ unicode multiline ;
IN: globs IN: globs
: not-path-separator ( -- sep ) : not-path-separator ( -- sep )
os windows? R/ [^\\/\\]/ R/ [^\\/]/ ? ; foldable os windows? R/ [^\\/]/ R/ [^/]/ ? ; foldable
: wild-path-separator ( -- sep ) : wild-path-separator ( -- sep )
os windows? R/ [^\\/\\][\\/\\]|[^\\/\\]/ R/ [^\\/][\\/]|[^\\/]/ ? ; foldable os windows? R/ [^\\/][\\/]|[^\\/]/ R/ [^/][/]|[^/]/ ? ; foldable
EBNF: <glob> [=[ EBNF: <glob> [=[