import { expect, test } from "vitest" import { regexpIsEmail } from "#Source/basic/index.ts" test("regexpIsEmail validates email format", () => { expect(regexpIsEmail("user@example.com")).toBe(true) expect(regexpIsEmail("first.last+tag@example.co")).toBe(true) expect(regexpIsEmail("user@localhost")).toBe(false) expect(regexpIsEmail("user@example")).toBe(false) expect(regexpIsEmail("user@.com")).toBe(false) })