Skip to content

Commit

Permalink
Merge pull request #330 from pe4cey/make-beta-frame-selection-great-a…
Browse files Browse the repository at this point in the history
…gain

Make use of String.prototype.includes when checking neo4j version
  • Loading branch information
pe4cey authored Nov 17, 2016
2 parents a65038c + 60ab4b8 commit aac858f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/controllers/Main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ angular.module('neo4jApp.controllers')
$scope.$emit 'db:updated:edition', val.edition

val = $scope.neo4j.version
if val.search(/-[^R]/) isnt -1
if val.includes('-') and not val.includes('-RC')
Frame.create({input:"#{Settings.cmdchar}play beta"})
else
Frame.create({input:"#{Settings.initCmd}"})
Expand Down

0 comments on commit aac858f

Please sign in to comment.