Skip to content

pantoken-root / formats/interactions/src / withPrefix

Fonction: withPrefix() ​

withPrefix(text, prefix?): string

Remplacez chaque pfx-sentinelle dans textpar l’espace de noms de prefix (par défaut, "instui").

Paramètres ​

text ​

string

prefix? ​

string = DEFAULT_PREFIX

Retourne ​

string