[steeditor] Tags should not allow special characters except for single -
Words
156
Reading
1 min
Listen
Play
8y
Project Information
Repository: https://github.com/jakipatryk/steeditor
Project Name: Steeditor
Publisher: @jakipatryk
Expected Behavior
Tags should prevent a user from entering all invalid special characters except one single - between two words.
Actual Behavior
Tags allow all special characters (!@$%^&*()) except for #. When trying to publish a post, steem throws a broadcast error without any details.
Steps to Reproduce
- Login to https://steeditor.app
- Select draft from the top menu and then proceed to select + in the bottom right corner to add a new draft.
- Turn off use template and click create.
- Enter any title and body text.
- Enter tags with special characters Ex. test/test
- Click on Next twice to go to summary section and click Send.
- Notice the broadcast error at the bottom of the page.
Proposed fix:
Use following regex for testing a valid tag: /[1]+(-[a-z0-9]+)$/*
Recording of the issue
- Browser: Google Chrome ( 69.0.3497.81 Version)
- Operating system: OSX 10.11.6
GitHub Account
https://github.com/mightypanda-x
https://github.com/jakipatryk/steeditor/issues/84
a-z0-9 ↩