From 69d704245b25fcfc420302d37a5beec01e4f0b73 Mon Sep 17 00:00:00 2001 From: C85297 <95289555+C85297@users.noreply.github.com> Date: Mon, 13 Apr 2026 10:22:25 +0100 Subject: [PATCH] Test fix --- tests/operations/tests/RegularExpression.mjs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/operations/tests/RegularExpression.mjs b/tests/operations/tests/RegularExpression.mjs index 7cad4d56..80af3ce7 100644 --- a/tests/operations/tests/RegularExpression.mjs +++ b/tests/operations/tests/RegularExpression.mjs @@ -6,6 +6,7 @@ * @license Apache-2.0 */ import TestRegister from "../../lib/TestRegister.mjs"; +import { EMAIL_REGEX } from "../../../src/core/lib/Extract.mjs"; TestRegister.addTests([ { @@ -17,7 +18,7 @@ TestRegister.addTests([ op: "Regular expression", args: [ "Email address", - null, + EMAIL_REGEX.source, true, true, false, @@ -31,14 +32,14 @@ TestRegister.addTests([ }, { name: "Regular Expression - built in email regex - invalid IP address", - input: "yaunwfkb\false_positive@[1.2.3.]\n091nvka", + input: "yaunwfkb\nfalse_positive@[1.2.3.]\n091nvka", expectedOutput: "", recipeConfig: [ { op: "Regular expression", args: [ "Email address", - null, + EMAIL_REGEX.source, true, true, false, @@ -59,7 +60,7 @@ TestRegister.addTests([ op: "Regular expression", args: [ "Email address", - null, + EMAIL_REGEX.source, true, true, false,