Reverting the patch

This commit is contained in:
acli 2005-01-24 07:13:54 +00:00
parent 45139cb721
commit fb2dfe1477
1 changed files with 2 additions and 3 deletions

View File

@ -341,15 +341,14 @@ sub identify_js_translatables (@) {
} elsif ($state == STATE_UNDERSCORE) {
$state = $input[$i] eq parenleft ? STATE_PARENLEFT : 0;
} elsif ($state == STATE_PARENLEFT) {
if ($input[$i] =~ /^(['"])\s*(.*)\1$/s) {
if ($input[$i] =~ /^(['"])(.*)\1$/s) {
($state, $j, $q, $s) = (STATE_STRING_LITERAL, $#output, $1, $2);
} else {
$state = 0;
}
} elsif ($state == STATE_STRING_LITERAL) {
if ($input[$i] eq parenright) {
my $candidate = $output[$j]->[1];
$output[$j] = [1, $candidate, $q, $s];
$output[$j] = [1, $output[$j]->[1], $q, $s];
}
$state = 0;
} else {