mirror of
https://github.com/readest/readest.git
synced 2026-11-29 19:02:28 +00:00
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
Build with Nix / tests (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / nix_flake_check (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / koplugin_rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_web_app (1) (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
* fix(deps): resolve open Dependabot alerts Bump next to 16.3.8 (next/og ImageResponse RCE, plus the image optimizer SSRF and cache-poisoning fixes shipped in the same release), dompurify to 3.4.16, and vitest to 4.1.11. Move ai, @ai-sdk/react and @ai-sdk/openai-compatible to releases that share @ai-sdk/provider-utils 4.0.57, and carry the iOS Safari lookbehind patch over to that version. Raise the workspace overrides for undici, brace-expansion, sharp, js-yaml, fast-uri and baseline-browser-mapping to their patched releases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nix): blank pnpmDeps hash to recompute it in CI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(nix): refresh pnpm dependency hash Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
diff --git a/dist/index.js b/dist/index.js
|
|
index 47735f7..a41e78f 100644
|
|
--- a/dist/index.js
|
|
+++ b/dist/index.js
|
|
@@ -1807,8 +1807,9 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
}
|
|
if (flags.m) {
|
|
if (source[i] === "^") {
|
|
- pattern += `(^|(?<=[\r
|
|
-]))`;
|
|
+ // Changed from lookbehind (?<=[\r\n]) to support older iOS Safari (before 16.4)
|
|
+ pattern += `(^|[\r
|
|
+])`;
|
|
continue;
|
|
} else if (source[i] === "$") {
|
|
pattern += `($|(?=[\r
|
|
diff --git a/dist/index.mjs b/dist/index.mjs
|
|
index 3700b11..07d9a52 100644
|
|
--- a/dist/index.mjs
|
|
+++ b/dist/index.mjs
|
|
@@ -1708,8 +1708,9 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
}
|
|
if (flags.m) {
|
|
if (source[i] === "^") {
|
|
- pattern += `(^|(?<=[\r
|
|
-]))`;
|
|
+ // Changed from lookbehind (?<=[\r\n]) to support older iOS Safari (before 16.4)
|
|
+ pattern += `(^|[\r
|
|
+])`;
|
|
continue;
|
|
} else if (source[i] === "$") {
|
|
pattern += `($|(?=[\r
|
|
diff --git a/src/to-json-schema/zod3-to-json-schema/parsers/string.ts b/src/to-json-schema/zod3-to-json-schema/parsers/string.ts
|
|
index a4b98dc..803257a 100644
|
|
--- a/src/to-json-schema/zod3-to-json-schema/parsers/string.ts
|
|
+++ b/src/to-json-schema/zod3-to-json-schema/parsers/string.ts
|
|
@@ -388,7 +388,8 @@ function stringifyRegExpWithFlags(regex: RegExp, refs: Refs): string {
|
|
|
|
if (flags.m) {
|
|
if (source[i] === '^') {
|
|
- pattern += `(^|(?<=[\r\n]))`;
|
|
+ // Changed from lookbehind (?<=[\r\n]) to support older iOS Safari (before 16.4)
|
|
+ pattern += `(^|[\r\n])`;
|
|
continue;
|
|
} else if (source[i] === '$') {
|
|
pattern += `($|(?=[\r\n]))`;
|