fix(core): update encoding QR constants and fetch utils
This commit is contained in:
@@ -34,7 +34,7 @@ export const PENALTY_N4 = 10;
|
||||
|
||||
/* -- Character Sets & Patterns -- */
|
||||
|
||||
export const NUMERIC_REGEX = /^[0-9]*$/;
|
||||
export const NUMERIC_REGEX = /^\d*$/;
|
||||
export const ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+./:_-]*$/;
|
||||
export const ALPHANUMERIC_CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:' as const;
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ const TEXT_CONTENT_TYPES: ReadonlySet<string> = /* @__PURE__ */ new Set([
|
||||
'application/html',
|
||||
]);
|
||||
|
||||
const JSON_CONTENT_TYPE_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
|
||||
const JSON_CONTENT_TYPE_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Predicate helpers
|
||||
|
||||
Reference in New Issue
Block a user