From a7066aa3e2b1e344e455f6c677b376e0c6d2a84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 26 Jan 2013 20:53:37 +0100 Subject: [PATCH] do not remove leading special chars According to Mozilla docu only [^A-Za-z0-9_] is considered a Word character - yeah :-( --- data/stripTitle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/stripTitle.js b/data/stripTitle.js index 24592ffcc1..24448929e1 100644 --- a/data/stripTitle.js +++ b/data/stripTitle.js @@ -98,7 +98,7 @@ function isBrowser(appName) { ret = ret.replace("[modified]", "❖"); // in general, remove leading [and trailing] blanks and special chars - ret = ret.replace(/^\W*/, ''); + // ret = ret.replace(/^\W*/, ''); - this does not work - Umlauts and pot. other chars are considered "non Word" ret = ret.replace(/^\s*/, '').replace(/\s*$/, ''); return ret; }) \ No newline at end of file