kefranabg/readme-md-generator

Getting wrong output form input of any username with a trailing underscore

Open

#206 opened on 2020年4月16日

GitHub で見る
 (5 comments) (0 reactions) (0 assignees)JavaScript (10,735 stars) (1,349 forks)batch import
bughelp wanted

説明

Description When inputting usernames (Twitter, Github, Linkedin or Patreon) with a trailing underscore (i.e foo_), a backward slash is inserted before the trailing underscore leading to errors loading the badge correctly and having to manually fix it.

To Reproduce Steps to reproduce the behavior: Input:

GitHub username (use empty value to skip) foo_

Output

GitHub username (use empty value to skip) foo\_
  1. Run npx readme-md-generator
  2. Skip to username input part
  3. When asked to input Github username, key in foo_
  4. See error

ScreenShot Screenshot 2020-04-16 at 12 35 54

Desktop:

  • OS: [MacOS Catalina]
  • Version [10.15.3]

コントリビューターガイド