Skip to content

Commit

Permalink
Simplified URL check for modal dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr. Frank Hoffmann authored and Dr. Frank Hoffmann committed Feb 18, 2019
1 parent 056148a commit a607694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zmi/styles/resources/zmi_base.js
Expand Up @@ -2,9 +2,9 @@

// HELPERS

// Check if string is URL
// Simple Check for Absolute URL
function isURL(str) {
return /^(?:\w+:)?\/\/([^\s\.]+\.\S{2}|.*?[\:?\d]*)\S*$/.test(str);
return /^(?:\w+:)?\/\/\S*$/.test(str);
};


Expand Down

0 comments on commit a607694

Please sign in to comment.