From 10704bc21650228dca9a287c1cc64ca1362cf88d Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 4 Jun 2015 17:21:02 +0000 Subject: [PATCH] + String.asciiQuotes() to normalize wierd quotation marks (e.g. "\u00b4\u2018\u2019\u02bb".asciiQuotes() == "''''") --- source/net/filebot/similarity/Normalization.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/similarity/Normalization.java b/source/net/filebot/similarity/Normalization.java index cbafe6dd..af719822 100644 --- a/source/net/filebot/similarity/Normalization.java +++ b/source/net/filebot/similarity/Normalization.java @@ -17,8 +17,8 @@ public class Normalization { private static final Pattern checksum = compile("[\\(\\[]\\p{XDigit}{8}[\\]\\)]"); - private static final char[] doubleQuotes = new char[] { '\"', '\u0060', '\u00b4', '\u2018', '\u2019', '\u02bb' }; - private static final char[] singleQuotes = new char[] { '\'', '\u201c', '\u201d' }; + private static final char[] doubleQuotes = new char[] { '\'', '\u0060', '\u00b4', '\u2018', '\u2019', '\u02bb' }; + private static final char[] singleQuotes = new char[] { '\"', '\u201c', '\u201d' }; public static String normalizeQuotationMarks(String name) { for (char[] cs : new char[][] { doubleQuotes, singleQuotes }) {