File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
swift/ql/test/library-tests/regex Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,13 @@ func myRegexpMethodsTests(b: Bool) throws {
143
143
_ = try either_regex. firstMatch ( in: input) // $ regex=.* regex=.+ input=input
144
144
145
145
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=
148
153
149
154
// --- escape sequences ---
150
155
You can’t perform that action at this time.
0 commit comments