From: JP Grace Date: Tue, 4 Feb 2014 19:52:10 +0000 (-0500) Subject: The foundation.js removeQuotes method's regex characters no longer cause exception... X-Git-Tag: v5.1.0~13^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F4339%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git The foundation.js removeQuotes method's regex characters no longer cause exception (Unexpected End of String) to be thrown when parsed by php minifier. --- diff --git a/js/foundation/foundation.js b/js/foundation/foundation.js index 889aa23da..0f683b59d 100644 --- a/js/foundation/foundation.js +++ b/js/foundation/foundation.js @@ -167,7 +167,7 @@ function removeQuotes (string) { if (typeof string === 'string' || string instanceof String) { - string = string.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g, ''); + string = string.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g, ''); } return string;