]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
The foundation.js removeQuotes method's regex characters no longer cause exception... 4339/head
authorJP Grace <jp@jpgrace.com>
Tue, 4 Feb 2014 19:52:10 +0000 (14:52 -0500)
committerJP Grace <jp@jpgrace.com>
Tue, 4 Feb 2014 19:52:10 +0000 (14:52 -0500)
js/foundation/foundation.js

index 889aa23da818279d9bb79ebe4bf9052601816e93..0f683b59dcee04a0dc1529f3ac446586a722289f 100644 (file)
 
   function removeQuotes (string) {
     if (typeof string === 'string' || string instanceof String) {
-      string = string.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g, '');
+      string = string.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g, '');
     }
 
     return string;