From e80eda25d9f3f57f26492baa6ccc5a9085f71e40 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Fri, 13 Mar 2026 22:20:41 -0500 Subject: [PATCH] Create YAWNTiC Regex --- ops/92.create-yawntic-regex.sql | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ops/92.create-yawntic-regex.sql diff --git a/ops/92.create-yawntic-regex.sql b/ops/92.create-yawntic-regex.sql new file mode 100644 index 00000000..680e4633 --- /dev/null +++ b/ops/92.create-yawntic-regex.sql @@ -0,0 +1,21 @@ +-- @operation: export +-- @entity: batch +-- @name: Create YAWNTiC Regex +-- @exportedAt: 2026-03-14T03:20:29.754Z +-- @opIds: 2986, 2987 + +-- --- BEGIN op 2986 ( create regular_expression "YAWNTiC" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('YAWNTiC', '(?<=^|[\s.-])YAWNiX\b', NULL, NULL); + +insert into "tags" ("name") values ('HEVC') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('YAWNTiC', 'HEVC'); + +insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing; + +INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('YAWNTiC', 'Release Group'); +-- --- END op 2986 + +-- --- BEGIN op 2987 ( update regular_expression "YAWNTiC" ) +update "regular_expressions" set "pattern" = '(?<=^|[\s.-])YAWNTiC\b' where "name" = 'YAWNTiC' and "pattern" = '(?<=^|[\s.-])YAWNiX\b'; +-- --- END op 2987