File tree Expand file tree Collapse file tree
swift/ql/test/library-tests/regex Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -143,8 +143,13 @@ func myRegexpMethodsTests(b: Bool) throws {
143143 _ = try either_regex. firstMatch ( in: input) // $ regex=.* regex=.+ input=input
144144
145145 let base_str = " a "
146- let append_regex = try Regex ( base_str + " b " )
147- _ = try append_regex. firstMatch ( in: input) // $ input=input MISSING: regex=ab
146+ let appended_regex = try Regex ( base_str + " b " )
147+ _ = try appended_regex. firstMatch ( in: input) // $ input=input MISSING: regex=ab
148+
149+ let multiple_evaluated_regex = try Regex ( #"([\w.]+)*"# )
150+ try _ = multiple_evaluated_regex. firstMatch ( in: input) // $ input=input regex=([\w.]+)*
151+ try _ = multiple_evaluated_regex. prefixMatch ( in: input) // $ input=input regex=([\w.]+)*
152+ try _ = multiple_evaluated_regex. wholeMatch ( in: input) // $ input=input regex=([\w.]+)* MISSING: redos-vulnerable=
148153
149154 // --- escape sequences ---
150155
You can’t perform that action at this time.
0 commit comments