Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Support arbitrary channel names when lauhching Atom Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
daviwil committed Jul 12, 2018
1 parent dccb04f commit 43a6e0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/helpers.js
Expand Up @@ -31,9 +31,10 @@ export function getPackageRoot() {
}

function getAtomAppName() {
const match = atom.getVersion().match(/beta|nightly/);
const match = atom.getVersion().match(/-([a-z]+)(\d+|-)/);
if (match) {
return `Atom ${match[0].charAt(0).toUpperCase() + match[0].slice(1)} Helper`;
const channel = match[1]
return `Atom ${channel.charAt(0).toUpperCase() + channel.slice(1)} Helper`;
}

return 'Atom Helper';
Expand Down

0 comments on commit 43a6e0c

Please sign in to comment.