mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
Fix unescaped { in regex
This commit is contained in:
parent
91354ad3f7
commit
712aed21b3
@ -300,8 +300,8 @@ $result =~ s/\s+/ /gm;
|
||||
print "result: [$result]\n" if $debug;
|
||||
|
||||
if(not $has_main) {
|
||||
$result =~ s/\s*int main\(void\) {//;
|
||||
$result =~ s/\s*}\s*$//;
|
||||
$result =~ s/\s*int main\(void\) \{//;
|
||||
$result =~ s/\s*\}\s*$//;
|
||||
}
|
||||
|
||||
$output = length $result ? $result : $nooutput;
|
||||
|
Loading…
Reference in New Issue
Block a user