From: Alan Knowles Date: Thu, 10 May 2018 07:17:02 +0000 (+0800) Subject: String.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=4ef8e367408b569e9466af67f2969357305698a3 String.js --- diff --git a/String.js b/String.js index d326c40186..0e76ae79d0 100644 --- a/String.js +++ b/String.js @@ -98,19 +98,19 @@ String.prototype.toggle = function(value, other){ * * @return {String} The clean string */ -String.prototype.unicodeClean: function () { - return this.replace(/[\s\S]/g, - function(character) { - if (character.charCodeAt()< 256) { - return character; - } - try { - encodeURIComponent(character); - } catch(e) { - return ''; - } - return character; - } - ); - } +String.prototype.unicodeClean = function () { + return this.replace(/[\s\S]/g, + function(character) { + if (character.charCodeAt()< 256) { + return character; + } + try { + encodeURIComponent(character); + } catch(e) { + return ''; + } + return character; + } + ); +};