From 3fefe2ce73c09db4fcddc3db642ac78feb7fab14 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 19 May 2013 16:34:38 +0000 Subject: [PATCH] * replace non-ascii chars with space rather than question mark --- .../net/sourceforge/filebot/format/ExpressionFormat.lib.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy b/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy index e3126807..a73e2614 100644 --- a/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy +++ b/source/net/sourceforge/filebot/format/ExpressionFormat.lib.groovy @@ -168,4 +168,4 @@ String.metaClass.transliterate = { transformIdentifier -> com.ibm.icu.text.Trans * e.g. "Österreich" -> "Osterreich" * "カタカナ" -> "katakana" */ -String.metaClass.ascii = { fallback = '?' -> delegate.transliterate("Any-Latin;Latin-ASCII;[:Diacritic:]remove").replaceAll("[^\\p{ASCII}]", fallback) } +String.metaClass.ascii = { fallback = ' ' -> delegate.transliterate("Any-Latin;Latin-ASCII;[:Diacritic:]remove").replaceAll("[^\\p{ASCII}]+", fallback) }