From d80c64889c52690d73456e2c295ddc28a8b2d0f9 Mon Sep 17 00:00:00 2001 From: 5j9 <5j9@users.noreply.github.com> Date: Thu, 18 Apr 2024 06:25:52 +0330 Subject: [PATCH] chore: remove unused regex --- wikitextparser/_wikitext.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index 9eb8e50..a91a0ec 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -113,11 +113,7 @@ DOTALL | MULTILINE | VERBOSE, ).finditer -substitute_apostrophes = rc( # bold-italic, bold, or italic tokens - rb"('\0*+){2,}+(?=[^']|$)", - MULTILINE | VERBOSE, -).sub -find_lines = rc(rb'(.*?)$').finditer +substitute_apostrophes = rc(rb"('\0*+){2,}+(?=[^']|$)", MULTILINE).sub BOLD_FINDITER = rc( rb"""