From 465ee640229e0fbf3c263b53a671b926ce8fd70c Mon Sep 17 00:00:00 2001 From: Tom Lambert Date: Wed, 18 Mar 2015 19:37:07 -0700 Subject: [PATCH] fix quotes --- js/caption-filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/caption-filter.js b/js/caption-filter.js index 2694072..c811f35 100644 --- a/js/caption-filter.js +++ b/js/caption-filter.js @@ -18,7 +18,7 @@ Drupal.captionFilter.toHTML = function(co, editor) { return co.replace(/(?:

)?\[caption([^\]]*)\]([\s\S]+?)\[\/caption\](?:<\/p>)?[\s\u00a0]*/g, function(a,b,c){ var id, cls, w, tempClass; - b = b.replace(/\\'|\\'|\\'/g, ''').replace(/\\"|\\"/g, '"'); + b = b.replace(/\\?'|\\'|\\'/g, ''').replace(/\\"|\\"/g, '"'); c = c.replace(/\\'|\\'/g, ''').replace(/\\"/g, '"'); id = b.match(/id=['"]([^'"]+)/i); cls = b.match(/align=['"]([^'"]+)/i); -- 1.8.0.msysgit.0