From f1d0a48f04cc17d7e2e715e8bbbc2a2856f84a25 Mon Sep 17 00:00:00 2001 From: Chris Odeon Date: Mon, 30 Sep 2013 15:55:52 +0100 Subject: [PATCH] Mailto Support --- vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js b/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js index d96dc69e..57ba9881 100644 --- a/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js +++ b/vendor/assets/javascripts/bootstrap-wysihtml5/wysihtml5.js @@ -5051,7 +5051,7 @@ wysihtml5.dom.parse = (function() { // ------------ attribute checks ------------ \\ var attributeCheckMethods = { url: (function() { - var REG_EXP = /^https?:\/\//i; + var REG_EXP = /^(https?:\/\/)|(mailto:)/i; return function(attributeValue) { if (!attributeValue || !attributeValue.match(REG_EXP)) { return null;