Permalink
Browse files

use lookahead in s/// instead of while loop

  • Loading branch information...
1 parent 4843514 commit 5806471ff1dbb2400a9afd7225c49e2e23ac9560 @ruz ruz committed May 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/RT/I18N.pm
View
@@ -304,7 +304,7 @@ sub DecodeMIMEWordsToEncoding {
([^?]+) # encoded string
\?= # ?=
/x;
- 1 while $str =~ s/($encoded_word)\s+($encoded_word)/$1$5/;
+ $str =~ s/($encoded_word)\s+(?=$encoded_word)/$1/g;
# Also merge quoted-printable sections together, in case multiple
# octets of a single encoded character were split between chunks.

0 comments on commit 5806471

Please sign in to comment.