This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,18 @@
// Metro module 10107 (f10108).
import RegexUtils from "../../../utils/RegexUtils";
export const ANSWER_IN_REGEX = /(?:\s*#?((?:"(\\\\|\\"|[^\\"])*")|(?:[^\s]+)))/i;
export const GENERIC_REGEX = /(?:\s*([^\s]+))/;
export function makeRegexForOptionsWithNegation(a0) {
return new RegExp(`(?:\\s*(-?(?:${[...a0].sort((a, b) => b.length - a.length).map((item) => RegexUtils.escape(item)).join("|")})))`, "i");
}
export function validateForMapWithNegation(a0, a1, a2) {
const match = a2.getMatch(1);
const r10 = match.startsWith("-");
const r12 = a1[r10 ? match.slice(1) : match];
let r13 = r12 != null && r12 !== "";
if (r13) {
a2.setData.call(a2, a0, r10 ? `-${r12}` : r12);
r13 = true;
}
return r13;
}