Ignore NEWLINE in format expression literals

@see https://www.filebot.net/forums/viewtopic.php?f=6&t=4338&p=24461#p24461
This commit is contained in:
Reinhard Pointner 2016-11-21 00:38:57 +08:00
parent 4d83f04812
commit 53376c3de6
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package net.filebot.format;
import static net.filebot.similarity.Normalization.*;
import static net.filebot.util.ExceptionUtilities.*;
import static net.filebot.util.FileUtilities.*;
import static net.filebot.util.RegularExpressions.*;
import java.security.AccessController;
import java.text.FieldPosition;
@ -65,7 +66,7 @@ public class ExpressionFormat extends Format {
if (c == open) {
if (level == 0) {
if (token.length() > 0) {
compilation.add(token.toString());
compilation.add(NEWLINE.matcher(token).replaceAll(""));
token.setLength(0);
}
} else {