mdp update
authorveltr
Tue, 18 Jun 2013 11:15:30 +0200
changeset 131 6ca3d309d1da
parent 130 443d8d500a66
child 132 2494ed5d722a
mdp update
integration/js/metadataplayer-core.js
--- a/integration/js/metadataplayer-core.js	Tue Jun 11 18:17:18 2013 +0200
+++ b/integration/js/metadataplayer-core.js	Tue Jun 18 11:15:30 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) {