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
This commit is contained in:
parent
5d0f71820e
commit
39b6d7a179
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue