Commits

Miki Tebeka committed 59a9302

More general URL checker

Comments (0)

Files changed (1)

metrics/resources/public/metrics.js

         buttons: {
             Add: function() { 
                      var url = $.trim($(this).find('input').val());
-                     if (!url.match(/^http(s)?:\/\/.+\..+\..+$/)) {
+                     if (!url.match(/^http(s)?:\/\/.+$/)) {
                          alert('Bad URL!');
                          return;
                      }