@@ -105,7 +105,6 @@ match_test_suite = [
105105 TestItem{"this cpapaz adce aabe third" ,r "(c(pa)+z)(\s[\a]+){2}$" ,- 1 ,0 },
106106 TestItem{"1234this cpapaz adce aabe ter" ,r "(c(pa)+z)(\s[\a]+){2}$" ,- 1 ,0 },
107107 TestItem{"cpapaz ole. pipipo," ,r "^.*c.+ol?e.*p([ip])+o$" ,- 1 ,0 },
108- TestItem{"/home/us_er/pippo/info-01.jpeg" , r "(/?[-\w_]+)*\.txt$" ,- 1 ,26 }
109108
110109 // check unicode
111110 TestItem{"this is a Ⅰ Ⅱ Ⅲ Ⅳ Ⅴ Ⅵ test" ,r ".*a [Ⅰ-Ⅵ ]+" ,0 ,34 },
@@ -174,6 +173,14 @@ match_test_suite = [
174173 TestItem{"refs/remotes/origin/master" , r "refs/remotes/origin/(.*)" ,0 ,26 },
175174 TestItem{"refs/remotes/origin/mastep" , r "refs/remotes/origin/(\w*)" ,0 ,26 },
176175 TestItem{"refs/remotes/origin/master" , r "refs/remotes/origin/(\w*)" ,0 ,26 },
176+
177+ // test \S+ vs [^\s]+
178+ TestItem{"ab.c" , r "\S+\." ,0 ,3 },
179+ TestItem{"ab.c" , r "[^\s]+\." ,0 ,3 },
180+ TestItem{"ab.c" , r "\S*\." ,0 ,3 },
181+ TestItem{"ab.c" , r "[^\s]*\." ,0 ,3 },
182+ TestItem{"ab c" , r "[\S]+\s" ,0 ,3 },
183+ TestItem{"ab c" , r "[^\s]+\s" ,0 ,3 },
177184]
178185)
179186
0 commit comments