UNPKG
dave-dredd
Version:
latest (14.1.2)
14.1.2
14.1.1
14.1.0
HTTP API Testing Framework
github.com/apiaryio/dredd/tree/master/packages/dredd
apiaryio/dredd
dave-dredd
/
build
/
isURL.js
10 lines
(9 loc)
•
231 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
/** * Decides whether given string is a URL or not */
function
isURL
(
location
) {
return
/^http(s)?:\/\//
.
test
(location); }
exports
.
default
= isURL;