UNPKG

@redocly/openapi-core

Version:

See https://github.com/Redocly/redocly-cli

5 lines 215 B
export function regexFromString(input) { const matches = input.match(/^\/(.*)\/(.*)|(.*)/); return matches && new RegExp(matches[1] || matches[3], matches[2]); } //# sourceMappingURL=regex-from-string.js.map