diff options
author | phikoehn <pkoehn@inf.ed.ac.uk> | 2012-06-27 01:49:59 +0400 |
---|---|---|
committer | phikoehn <pkoehn@inf.ed.ac.uk> | 2012-06-27 01:49:59 +0400 |
commit | 6af0b62b8a1a7f0c00a700e064d7282cd746edbd (patch) | |
tree | e0b55c823e680f8178956cb771e7f5b00cfcff77 /scripts | |
parent | 65df3865814d8ac60c6dc32c2cd3cec709bf81c1 (diff) |
bug fix
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/tokenizer/escape-special-chars.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tokenizer/escape-special-chars.perl b/scripts/tokenizer/escape-special-chars.perl index d0bf75796..89afdb0e3 100755 --- a/scripts/tokenizer/escape-special-chars.perl +++ b/scripts/tokenizer/escape-special-chars.perl @@ -22,6 +22,6 @@ while(<STDIN>) { s/\]/\]/g; # syntax non-terminal # restore xml instructions - s/\<(\S+) translation="([^\"]+)"> (.+?) <\/(\S+)>/\<$1 translation=\"$2\"> $3 <\/$4>/g; + s/\<(\S+) translation="(.+?)"> (.+?) <\/(\S+)>/\<$1 translation=\"$2\"> $3 <\/$4>/g; print $_."\n"; } |