mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +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;
|
print "result: [$result]\n" if $debug;
|
||||||
|
|
||||||
if(not $has_main) {
|
if(not $has_main) {
|
||||||
$result =~ s/\s*int main\(void\) {//;
|
$result =~ s/\s*int main\(void\) \{//;
|
||||||
$result =~ s/\s*}\s*$//;
|
$result =~ s/\s*\}\s*$//;
|
||||||
}
|
}
|
||||||
|
|
||||||
$output = length $result ? $result : $nooutput;
|
$output = length $result ? $result : $nooutput;
|
||||||
|
Loading…
Reference in New Issue
Block a user