]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/globs/globs.factor
regexp: one R/ syntax to rule them all, simpler this way.
[factor.git] / basis / globs / globs.factor
index b712332419d8ba7ada0a274a7b5606755b24d334..285578073d88c3842620a41f393b23947cdefae3 100644 (file)
@@ -7,7 +7,7 @@ strings system unicode.case ;
 IN: globs
 
 : not-path-separator ( -- sep )
-    os windows? R! [^/\\]! R! [^/]! ? ; foldable
+    os windows? R/ [^\\/\\]/ R/ [^\\/]/ ? ; foldable
 
 EBNF: <glob>