MCPcopy Index your code
hub / github.com/openspeedtest/Speed-Test / isValidHttpUrl

Function isValidHttpUrl

assets/js/app-2.5.4.js:653–660  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

651 }
652 }
653 function isValidHttpUrl(str) {
654 var regex = /(?:https?):\/\/(\w+:?\w*)?(\S+)(:\d+)?(\/|\/([\w#!:.?+=&%!\-\/]))?/;
655 if (!regex.test(str)) {
656 return false;
657 } else {
658 return true;
659 }
660 }
661 if (selectServer) {
662 if (typeof getCommand.host === "string" || typeof getCommand.h === "string") {
663 var severAddress;

Callers 1

openSpeedtestEngineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected