diff options
author | Frederic Lepied <flepied@mandriva.com> | 2004-02-06 09:55:12 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2004-02-06 09:55:12 +0000 |
commit | 445a48295b03ef1a25c68ae9c00d0557d4370739 (patch) | |
tree | 9b7aa792ba9adcf93968f121ef76939b36c1119f | |
parent | e5e55e43df50916cffc88455d0d8894f73ed721d (diff) | |
download | spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.gz spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.bz2 spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.tar.xz spec-helper-445a48295b03ef1a25c68ae9c00d0557d4370739.zip |
don't put 4 " in section field
-rwxr-xr-x | translate_menu.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/translate_menu.pl b/translate_menu.pl index b2cf6ae..c634e14 100755 --- a/translate_menu.pl +++ b/translate_menu.pl @@ -52,7 +52,7 @@ foreach my $file (@ARGV) { open ($FILE, ">$file"); for my $l (@lines) { chomp($l); - if (( $l =~ /(.*section=")([^"]+)("\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) { + if (( $l =~ /(.*section=)"([^"]+)"(\s+.*)/ ) or ( $l =~ /(.*section=)([^"].+?)((\s|\\)+.*)/ )) { my ($beg, $section, $end) = ($1, $2, $3); $section = translate($section); $l = "$beg\"$section\"$end"; |