From 67382dde33bfda6a3850769d3fbae68d1176689e Mon Sep 17 00:00:00 2001 From: tonghe Date: Tue, 23 Jan 2024 16:03:50 +0100 Subject: [PATCH] allow version numbers that start with 23 or 24 --- src/syntax_highlighting/consts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/syntax_highlighting/consts.py b/src/syntax_highlighting/consts.py index a315a7a..ea11dc9 100644 --- a/src/syntax_highlighting/consts.py +++ b/src/syntax_highlighting/consts.py @@ -13,7 +13,7 @@ import os from anki import version -anki21 = version.startswith("2.1.") +anki21 = version.startswith("2.1.") or version.startswith("23") or version.startswith("24") sys_encoding = sys.getfilesystemencoding() if anki21: