do not remove leading special chars

According to Mozilla docu only [^A-Za-z0-9_] is considered
a Word character - yeah :-(
remotes/origin/Plasma/5.0
Thomas Lübking 13 years ago
parent 862b35dcc8
commit 0ac1950ddc
  1. 2
      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;
})
Loading…
Cancel
Save