forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -212,8 +212,10 @@ class ModuleTag(ScoTag):
|
|||||||
# API
|
# API
|
||||||
|
|
||||||
|
|
||||||
def module_tag_search(term):
|
# TODO placer dans la vraie API et ne plus utiliser sco_publish
|
||||||
|
def module_tag_search(term: str | int):
|
||||||
"""List all used tag names (for auto-completion)"""
|
"""List all used tag names (for auto-completion)"""
|
||||||
|
term = "" if term is None else str(term)
|
||||||
# restrict charset to avoid injections
|
# restrict charset to avoid injections
|
||||||
if not scu.ALPHANUM_EXP.match(term):
|
if not scu.ALPHANUM_EXP.match(term):
|
||||||
data = []
|
data = []
|
||||||
|
Loading…
Reference in New Issue
Block a user