Skip to content

Commit

Permalink
fix: use default separator if none is configured (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 8, 2021
1 parent 65239cb commit 602cf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/help/util.ts
Expand Up @@ -87,7 +87,7 @@ export function toStandardizedId(commandID: string, config: IConfig): string {

export function toConfiguredId(commandID: string, config: IConfig): string {
const defaultTopicSeperator = ':'
return commandID.replace(new RegExp(defaultTopicSeperator, 'g'), config.topicSeparator)
return commandID.replace(new RegExp(defaultTopicSeperator, 'g'), config.topicSeparator || defaultTopicSeperator)
}

export function standardizeIDFromArgv(argv: string[], config: IConfig): string[] {
Expand Down

0 comments on commit 602cf12

Please sign in to comment.