Fix URL regex

Old one doesn't match umlauts and other unicode stuff
New one is a lot more general and similar to what angular uses
rewrite-with-urlplugin
Lorenz Hübschle-Schneider 11 years ago
parent 5d0f71820e
commit 39b6d7a179
  1. 2
      js/plugins.js

@ -111,7 +111,7 @@ plugins.service('plugins', ['userPlugins', '$sce', function(userPlugins, $sce) {
*/
plugins.factory('userPlugins', function() {
var urlRegexp = RegExp(/(http|ftp|https):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/);
var urlRegexp = RegExp(/(ftp|https?):\/\/\S*[^\s.;,(){}<>]/)
/*
* Spotify Embedded Player

Loading…
Cancel
Save