This commit is contained in:
Dragon Fire
2020-10-24 14:25:32 -04:00
parent 40080cadef
commit ebd26a7b0e
25 changed files with 42 additions and 44 deletions
+2 -2
View File
@@ -22,13 +22,13 @@ module.exports = class ShieldsIoBadgeCommand extends Command {
key: 'subject',
prompt: 'What is the subject of the badge?',
type: 'string',
parse: subject => encodeURIComponent(subject.replace(/-/g, '--').replace(/_/g, '__'))
parse: subject => encodeURIComponent(subject.replaceAll('-', '--').replaceAll('_', '__'))
},
{
key: 'status',
prompt: 'What is the status of the badge?',
type: 'string',
parse: status => encodeURIComponent(status.replace(/-/g, '--').replace(/_/g, '__'))
parse: status => encodeURIComponent(status.replaceAll('-', '--').replaceAll('_', '__'))
},
{
key: 'color',