fixed brackets used for refs in cleanup func

This commit is contained in:
Rudis Muiznieks 2025-04-02 15:15:30 -05:00
parent 043077658d
commit f33c388e1f
Signed by: rudism
GPG key ID: CABF2F86EF7884F9
2 changed files with 3 additions and 3 deletions

View file

@ -53,8 +53,8 @@ class KagiSkill(FallbackSkill):
# Remove asterisks and underscores
text = text.replace('*', '').replace('_', '')
# Remove numbers in square brackets (e.g., [1], [12])
text = re.sub(r'\[\d+\]', '', text)
# Remove numbers in the brackets that Kagi uses for refs (e.g., 【1】【12】)
text = re.sub(r'\\d+】', '', text)
return text

View file

@ -4,7 +4,7 @@ import os
from os import walk, path
PYPI_NAME = "skill-ovos-fallback-kagi" # pip install PYPI_NAME
VERSION = "0.0.4"
VERSION = "0.1.0"
URL = f"https://code.sitosis.com/rudism/{PYPI_NAME}"
SKILL_CLAZZ = "KagiSkill" # needs to match __init__.py class name