Commits

Miki Tebeka  committed 59a9302

More general URL checker

  • Participants
  • Parent commits 2b1c473

Comments (0)

Files changed (1)

File 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;
                      }