assert-valid-github-label-name
Assert a given string is a valid Github issue label name
; ;
/Users/shinnn/node_modules/assert-valid-github-label-name/index.js:27
throw new Error(
^
Error: Expected a valid Github issue label name, but got an invalid name "label🍕name🍔\n":
at 5,10: Invalid characters: "🍕" and "🍔". Label name cannot have Unicode characters above 0xFFFF.
at 11: Label name cannot have linebreaks.
Installation
npm
npm install assert-valid-github-label-name
bower
bower install assert-valid-github-label-name
API
assertValidGithubLabelName(str)
str: String
(Github issue label name)
It throws an error when the given string is not a valid Github issue label name.
; // doesn't throw;; // throws an error;;;;;
License
Copyright (c) 2017 Shinnosuke Watanabe
Licensed under the MIT License.