feat: add Python and Java regex engines
This commit is contained in:
@@ -40,15 +40,17 @@ const entries = (await readdir(engineDirectory)).sort();
|
||||
|
||||
if (
|
||||
typeof packageJson.version !== "string" ||
|
||||
entries.length !== 2 ||
|
||||
entries.length !== 4 ||
|
||||
entries[0] !== "README.md" ||
|
||||
entries[1] !== "pcre2"
|
||||
entries[1] !== "java" ||
|
||||
entries[2] !== "pcre2" ||
|
||||
entries[3] !== "python"
|
||||
) {
|
||||
throw new Error(
|
||||
"The production build requires the documented PCRE2 runtime pack.",
|
||||
"The production build requires the documented Java, PCRE2 and Python runtime packs.",
|
||||
);
|
||||
}
|
||||
|
||||
console.log(
|
||||
"The checked-in PCRE2 runtime pack is present; no release-time download or engine compilation is needed.",
|
||||
"The checked-in Java, PCRE2 and Python runtime packs are present; no release-time download or engine compilation is needed.",
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user