From 7e2a43efd596415a59a23a893e74068e5721cefa Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 5 Dec 2015 10:01:34 +0000 Subject: [PATCH] * better ascii-fy quotes --- source/net/filebot/format/ExpressionFormatMethods.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/format/ExpressionFormatMethods.java b/source/net/filebot/format/ExpressionFormatMethods.java index d1fba3db..27b41e20 100644 --- a/source/net/filebot/format/ExpressionFormatMethods.java +++ b/source/net/filebot/format/ExpressionFormatMethods.java @@ -274,7 +274,7 @@ public class ExpressionFormatMethods { } public static String ascii(String self, String fallback) { - return Transliterator.getInstance("Any-Latin;Latin-ASCII;[:Diacritic:]remove").transform(self).replaceAll("[^\\p{ASCII}]+", fallback).trim(); + return Transliterator.getInstance("Any-Latin;Latin-ASCII;[:Diacritic:]remove").transform(asciiQuotes(self)).replaceAll("[^\\p{ASCII}]+", fallback).trim(); } public static String asciiQuotes(String self) {