Skip to content

Commit ab014c3

Browse files
authored
Update CSharpToCpp.py
1 parent 20a37e3 commit ab014c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/cs2cpp/CSharpToCpp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __init__(self, codeString="", extra=[], useRegex=False):
121121
(r"\$\"\"", r"\"", None, 0),
122122
# Console.WriteLine("...")
123123
# printf("...\n")
124-
(r"Console\.WriteLine\(\"([^\"\"]+)\"\)", r"printf(\"\1\\n\")", None, 0),
124+
(r"Console\.WriteLine\(\"([^\"]+)\"\)", r"printf(\"\1\\n\")", None, 0),
125125
# throw new InvalidOperationException
126126
# throw std::exception
127127
(r"throw new (InvalidOperationException|Exception)", r"throw std::exception", None, 0),

0 commit comments

Comments
 (0)