From d06ea132af8e51da881e9e165ae02fb4af16cc25 Mon Sep 17 00:00:00 2001 From: xenofem Date: Thu, 8 Feb 2024 04:54:36 -0500 Subject: [PATCH] include full-width numerals in number regex --- dlibrary/dlibrary.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlibrary/dlibrary.py b/dlibrary/dlibrary.py index bde797d..f3f3dd6 100755 --- a/dlibrary/dlibrary.py +++ b/dlibrary/dlibrary.py @@ -20,7 +20,7 @@ from PIL import Image from jinja2 import Environment, PackageLoader, select_autoescape import requests -NUMBER_REGEX = re.compile('[0-9]+') +NUMBER_REGEX = re.compile('[0-90-9]+') DLSITE_ID_REGEX = re.compile('^[BR]J[0-9]+$') FANZA_ID_REGEX = re.compile('^d_[0-9]+$')