UNPKG

typia

Version:

Superfast runtime validators with only one line

7 lines (6 loc) 256 B
//#region src/internal/_isFormatByte.ts const _isFormatByte = (str) => PATTERN.test(str); const PATTERN = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/; //#endregion export { _isFormatByte }; //# sourceMappingURL=_isFormatByte.mjs.map