Skip to content
Browse files

Merge remote-tracking branch 'seantan/master'

  • Loading branch information...
2 parents 03dbc3d + 9c22228 commit 44a2b4b0c4bf542d8d6634bec5caa25619b2184b @qqshfox committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rubyamf/model.rb
View
2 lib/rubyamf/model.rb
@@ -115,7 +115,7 @@ def rubyamf_set_non_attributes attrs, base_attrs
not_attributes = attrs.keys.select {|k| !base_attrs.include?(k)}
not_attributes.each do |k|
setter = "#{k}="
- next if setter !~ /^[a-z][A-Za-z0-9_]+=/ # Make sure setter doesn't start with capital, dollar, or underscore to make this safer
+ next if setter !~ /^[a-z][A-Za-z0-9_]*=/ # Make sure setter doesn't start with capital, dollar, or underscore to make this safer
if respond_to?(setter)
send(setter, attrs.delete(k))
else

0 comments on commit 44a2b4b

Please sign in to comment.
Something went wrong with that request. Please try again.