kefranabg/readme-md-generator

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

Open

#206 建立於 2020年4月16日

在 GitHub 查看
 (5 留言) (0 反應) (0 負責人)JavaScript (1,349 fork)batch import
bughelp wanted

倉庫指標

Star
 (10,735 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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]

貢獻者指南