IO - SteemConnect v2 Boilerplate @0.0.29 - Regex for Tags.

in #iambya8 years ago (edited)

Current Code
const Tags = post.tags.split(',').map(tag => tag.replace(/[^a-zA-Z0-9]+/g, "").toLowerCase());

Just securing that no one can send a wrong TAG. Next step could be to avoid duplicate TAGS.

Currently Using: React & Redux
Contact Me if you need some help with SteemConnect v2.