UNPKG
to-regexp
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.3
0.0.2
Convert globs, strings, and arrays to a single RegExp.
github.com/zeekay/to-regexp
zeekay/to-regexp
to-regexp
/
lib
/
pattern.js
9 lines
(6 loc)
•
204 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
// Generated by CoffeeScript 1.10.0
var
isRegex;
module
.
exports
= isRegex =
function
(
pattern
) {
return
(pattern.
charAt
(
0
)) ===
'/'
&&
/\/(\w+)?$/
.
test
(pattern); };
//# sourceMappingURL=pattern.js.map