Steeditor.app: Invalid permlink character error

in #utopian-io6 years ago

Project Information

A GitHub issue was created and the the issue was fixed by @jakipatryk in PR#90.

Expected behavior

Steeditor builds a permlink from the post title. However, not all characters are allowed in permlinks. Steeditor should allow any characters in the title and replace invalid permlink characters to form a working permlink from the title.

Actual behavior

Underscore (_) chars from the title are not allowed in the permlink and are not replaced. The comment broadcast call to SteemConnect returns code 500 with {"error":"server_error","error_description":"false: Invalid permlink character: _"} and Steeditor shows an error:
error

How to reproduce

Try to submit a post with underscores in the title, e.g.
title

Steemit replaces underscores with "-".

A similiar use case of replacing underscores with dashes could be found in an issue on the upstream library used to handle the permlink generation: https://github.com/pid/speakingurl/issues/103
{ custom:{'_': '-'} should do the trick, but I did not know how to insert this to steeditor here.

@jakipatryk implemented the fix with PR#90.

Environment

Chrome 69.0
Steeditor as live on https://steeditor.app on 18-10-09

GitHub Account

https://github.com/crokkon

Sort:  

Congratulations @stmdev! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

Award for the total payout received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

SteemitBoard Ranking update - Resteem and Resteemed added

Support SteemitBoard's project! Vote for its witness and get one more award!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63117.29
ETH 2601.03
USDT 1.00
SBD 2.76