From e962472414e1698abc4e190392b4638fc37c2123 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Sun, 27 Jul 2014 12:47:20 +0100 Subject: [PATCH] Fix Google maps regex --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index bf9224c..53587dd 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -277,7 +277,7 @@ plugins.factory('userPlugins', function() { if (match) { var url = match[0]; - if (url.match(/^https?:\/\/maps\.google\./i) || url.match(/^https?:\/\/([^\w]+\.)?google\.[^\w]+\/maps/i)) { + if (url.match(/^https?:\/\/maps\.google\./i) || url.match(/^https?:\/\/(?:[\w]+\.)?google\.[\w]+\/maps/i)) { return ''; } }