mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add Atom::isReleasedVersion, which determines if the version is a SHA
This commit is contained in:
@@ -361,6 +361,10 @@ class Atom
|
||||
getVersion: ->
|
||||
app.getVersion()
|
||||
|
||||
# Public: Determine whether the current version is an official release.
|
||||
isReleasedVersion: ->
|
||||
not /\w{7}/.test(@getVersion()) # Check if the release is a 7-character SHA prefix
|
||||
|
||||
getGitHubAuthTokenName: ->
|
||||
'Atom GitHub API Token'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user