Skip to content

Commit

Permalink
Fix for lines with multiple =s
Browse files Browse the repository at this point in the history
  • Loading branch information
graywolf authored May 6, 2018
1 parent 4c8ed26 commit d53aad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/changit/lexer/key_value_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class KeyValueToken
attr_accessor :rhs # right-hand side

def initialize(key_value)
@lhs, @rhs = key_value.split('=').map(&:strip)
@lhs, @rhs = key_value.split('=', 2).map(&:strip)
end

def to_s
Expand Down

0 comments on commit d53aad6

Please sign in to comment.