From 2eb27043463c8f6361ea131caa6765fa60ec9073 Mon Sep 17 00:00:00 2001 From: Zorrodelaarena Date: Fri, 19 Apr 2013 10:21:29 -0300 Subject: [PATCH] Fixed bad unicode character in cleanKey regex As per http://stackoverflow.com/questions/12310534/regular-expression-syntax-error-amplifyjs --- storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage.js b/storage.js index 065caef..108c0b2 100755 --- a/storage.js +++ b/storage.js @@ -81,7 +81,7 @@ Dual licensed under the MIT or GPL licenses. // http://www.w3.org/TR/REC-xml/#NT-Name // simplified to assume the starting character is valid cleanKey = function( key ){ - return key.replace( /[^-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u37f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g, "-" ); + return key.replace( /[^-._0-9A-Za-z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f\u2040\u2070-\u218f]/g, "-" ); }; @@ -89,4 +89,4 @@ Dual licensed under the MIT or GPL licenses. localStorage["length"] = div.XMLDocument.documentElement.attributes.length; } } -})(); \ No newline at end of file +})();