From 67f223536ce35d9543416b89446dc96d175db118 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 11 Aug 2022 15:34:56 +0200 Subject: [PATCH] increase hole max char limit from 20 to 25 --- files/helpers/regex.py | 2 +- schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/regex.py b/files/helpers/regex.py index 039220e3d..ff5891f67 100644 --- a/files/helpers/regex.py +++ b/files/helpers/regex.py @@ -21,7 +21,7 @@ marsey_regex = re.compile("[a-z0-9]{1,30}", flags=re.A) tags_regex = re.compile("[a-z0-9: ]{1,200}", flags=re.A) -valid_sub_regex = re.compile("^[a-zA-Z0-9_\-]{3,20}$", flags=re.A) +valid_sub_regex = re.compile("^[a-zA-Z0-9_\-]{3,25}$", flags=re.A) query_regex = re.compile("(\w+):(\S+)", flags=re.A) diff --git a/schema.sql b/schema.sql index 6ed689a7d..4bd6d1fc1 100644 --- a/schema.sql +++ b/schema.sql @@ -713,7 +713,7 @@ ALTER SEQUENCE public.submissions_id_seq OWNED BY public.submissions.id; -- CREATE TABLE public.subs ( - name character varying(20) NOT NULL, + name character varying(25) NOT NULL, sidebar character varying(10000), sidebar_html character varying(20000), sidebarurl character varying(60),