Skip to content

Commit 9e129ac

Browse files
committed
Swift: Fix toString on regex literals.
1 parent e9c2594 commit 9e129ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
private import codeql.swift.generated.expr.RegexLiteralExpr
22

33
class RegexLiteralExpr extends Generated::RegexLiteralExpr {
4-
override string toString() {
5-
result = "..." // TODO: We can improve this once we extract the regex
6-
}
4+
override string toString() { result = this.getPattern() }
75
}

0 commit comments

Comments
 (0)