player/js/metadataplayer-core.js
changeset 32 06d7faebcb8d
parent 18 b8a45e2fd6fd
child 87 017f45c5209f
--- a/player/js/metadataplayer-core.js	Tue Jun 18 12:22:38 2013 +0200
+++ b/player/js/metadataplayer-core.js	Tue Jun 18 17:05:41 2013 +0200
@@ -27,7 +27,9 @@
 /* Initialization of the namespace */
 
 if (typeof window.IriSP === "undefined") {
-    window.IriSP = {};
+    window.IriSP = {
+        VERSION: "0.3.1"
+    };
 }
 
 if (typeof IriSP.jQuery === "undefined" && typeof window.jQuery !== "undefined" && parseFloat(window.jQuery().jquery) >= 1.7) {
@@ -96,7 +98,7 @@
         addToList(_regexp, '<span class="Ldt-Highlight">', '</span>');
     }
     
-    addToList(/(https?:\/\/)?\w+\.\w+\S+/gm, function(matches) {
+    addToList(/(https?:\/\/)?[\w\d\-]+\.[\w\d\-]+\S+/gm, function(matches) {
         return '<a href="' + (matches[1] ? '' : 'http://') + matches[0] + '" target="_blank">'
     }, '</a>');
     addToList(/@([\d\w]{1,15})/gm, function(matches) {