diff --git a/core/encoding/src/qr/constants.ts b/core/encoding/src/qr/constants.ts index bf16150..421fbec 100644 --- a/core/encoding/src/qr/constants.ts +++ b/core/encoding/src/qr/constants.ts @@ -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; diff --git a/core/fetch/src/utils.ts b/core/fetch/src/utils.ts index f9ea266..37c37d4 100644 --- a/core/fetch/src/utils.ts +++ b/core/fetch/src/utils.ts @@ -21,7 +21,7 @@ const TEXT_CONTENT_TYPES: ReadonlySet = /* @__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