From 75fc29389b97ea21533b2708fe66edc842fe9db0 Mon Sep 17 00:00:00 2001 From: Andreyco Date: Sun, 17 Feb 2013 22:04:13 +0100 Subject: [PATCH] 'src' attribute check method accepts data URL Modified regular expression to match data URL for images encoded to base64. Fixes this [issue 334](https://github.com/xing/wysihtml5/issues/334) --- dist/wysihtml5-0.4.0pre.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/wysihtml5-0.4.0pre.js b/dist/wysihtml5-0.4.0pre.js index 66da87ab..eb1684be 100644 --- a/dist/wysihtml5-0.4.0pre.js +++ b/dist/wysihtml5-0.4.0pre.js @@ -5074,7 +5074,7 @@ wysihtml5.dom.parse = (function() { })(), src: (function() { - var REG_EXP = /^(\/|https?:\/\/)/i; + var REG_EXP = /^((\/|https?:\/\/|")|data:image\/(gif|png|jpeg);base64,)/i; return function(attributeValue) { if (!attributeValue || !attributeValue.match(REG_EXP)) { return null;