UNPKG

milady

Version:

Generate the front-end code by parsing the interface document

11 lines (9 loc) 223 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isUrl = isUrl; function isUrl(params) { const routeReg = /^https?:\/\/[^/:]+(:\d*)?(\/#)?([^?]*)/; return routeReg.test(params); }