fix(core): update encoding QR constants and fetch utils

This commit is contained in:
2026-06-08 15:50:59 +07:00
parent 74fbd0c005
commit 9a912f7a77
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export const PENALTY_N4 = 10;
/* -- Character Sets & Patterns -- */ /* -- Character Sets & Patterns -- */
export const NUMERIC_REGEX = /^[0-9]*$/; export const NUMERIC_REGEX = /^\d*$/;
export const ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+./:_-]*$/; export const ALPHANUMERIC_REGEX = /^[A-Z0-9 $%*+./:_-]*$/;
export const ALPHANUMERIC_CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:' as const; export const ALPHANUMERIC_CHARSET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:' as const;
+1 -1
View File
@@ -21,7 +21,7 @@ const TEXT_CONTENT_TYPES: ReadonlySet<string> = /* @__PURE__ */ new Set([
'application/html', 'application/html',
]); ]);
const JSON_CONTENT_TYPE_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i; const JSON_CONTENT_TYPE_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// Predicate helpers // Predicate helpers