Skip to content

Commit

Permalink
Get rid of invisble chars in attributes names
Browse files Browse the repository at this point in the history
  • Loading branch information
zog committed Jul 22, 2019
1 parent 9c025d3 commit 676d5c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/gtfs/model/class_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def parse_model(attr_hash, options={})
unprefixed_attr_hash = {}

attr_hash.each do |key, val|
unprefixed_attr_hash[key.gsub(/^#{prefix}/, '')] = val
unprefixed_attr_hash[key.gsub(/^#{prefix}/, '').gsub(/[^a-zA-Z_]/, '')] = val
end

model = self.new(unprefixed_attr_hash)
Expand Down
2 changes: 1 addition & 1 deletion lib/gtfs/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module GTFS
VERSION = '0.3.1'
VERSION = '0.3.2'
end

0 comments on commit 676d5c3

Please sign in to comment.