Skip to content

Commit b073676

Browse files
committed
Adicionado hífen na regex.
1 parent ec6f405 commit b073676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/aws_deploy.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace :aws_deploy do
3434

3535
# -----------
3636
def get_current_branch
37-
`git branch`.match(/\*\s([\w\/]+)/)[1]
37+
`git branch`.match(/\*\s([\w\/-]+)/)[1]
3838
end
3939
def aws_check_current_branch(branch_to_deploy)
4040
if get_current_branch != branch_to_deploy

0 commit comments

Comments
 (0)