We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d8d0db commit 9ad8d8bCopy full SHA for 9ad8d8b
src/formats.ts
@@ -197,8 +197,10 @@ function uri(str: string): boolean {
197
return NOT_URI_FRAGMENT.test(str) && URI.test(str)
198
}
199
200
+const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm
201
+
202
function byte(str: string): boolean {
- const BYTE = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm
203
+ BYTE.lastIndex = 0
204
return BYTE.test(str)
205
206
0 commit comments