fixed brackets used for refs in cleanup func
This commit is contained in:
parent
043077658d
commit
f33c388e1f
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
2
setup.py
2
setup.py
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue