UNPKG
@wca/helpers
Version:
latest (1.1.7)
next (1.0.0-alpha.0)
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.0
1.0.0-alpha.1
1.0.0-alpha.0
Helpers and class definitions for WCA and WCIF
github.com/thewca/wca-helpers
thewca/wca-helpers
@wca/helpers
/
lib
/
helpers
/
wcaId.js
8 lines
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
isWcaId
=
void
0
;
function
isWcaId
(
wcaId
) {
return
/^\d{4}[A-Z]{4}\d{2}$/
.
test
(wcaId.
toUpperCase
()); }
exports
.
isWcaId
= isWcaId;
//# sourceMappingURL=wcaId.js.map