0π
β
I havenβt quite found the perfect answer, but this seems to work okay:
var newSetTags = document.getElementById("new-set-tags");
var tagify = new Tagify(newSetTags, { pattern: /^[a-z][a-z_]+$/gm });
The pattern parameter validates the tags.
Source:stackexchange.com