feat: add multi-engine regex flavour support

This commit is contained in:
2026-07-27 11:43:51 +02:00
parent 7079cde15f
commit 7f3a91ad37
340 changed files with 643286 additions and 483 deletions

View File

@@ -6,6 +6,7 @@ import {
PythonEngineAdapter,
PYODIDE_ENGINE_VERSION,
PYTHON_ENGINE_VERSION,
PYTHON_FLAVOUR_VERSION,
} from "../../src/regex/execution/adapters/python/PythonEngineAdapter";
import type {
PyodideModule,
@@ -28,7 +29,7 @@ function request(
): RegexExecutionRequest {
return {
flavour: "python",
flavourVersion: PYTHON_ENGINE_VERSION,
flavourVersion: PYTHON_FLAVOUR_VERSION,
pattern: "a",
flags: ["g"],
subject: "a",
@@ -68,7 +69,7 @@ describe("CPython re 3.14.2 conformance through self-hosted Pyodide", () => {
expect.objectContaining({
flavour: "python",
engineName: "CPython re via Pyodide",
engineVersion: "CPython 3.14.2 re",
engineVersion: PYTHON_ENGINE_VERSION,
runtimeVersion: expect.stringContaining("Pyodide 314.0.3"),
offsetUnit: "code-point",
}),