adding-help: commit prevent the use of semicolon
This commit is contained in:
@@ -18,10 +18,15 @@ module Feature
|
||||
parts = parse_branch(current_branch)
|
||||
|
||||
comment = argv.reject { |x| x == '-m' }.join(' ')
|
||||
if comment.include? ";"
|
||||
error "invalid character: ';'"
|
||||
else
|
||||
comment = "#{parts[:feature]}: #{comment}"
|
||||
|
||||
git_commit comment
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user