Skip to content

Commit

Permalink
fix(identifier): Ensure character substituting happens after truncation
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Nov 29, 2023
1 parent 542a75c commit 0849ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/honeybee/model_object.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ def self.clean_name(str)
# remove illegal characters in identifier
def self.clean_identifier(str)
encode_str = str.encode(Encoding.find('ASCII'), **@@encoding_options)
encode_str.gsub(/[^.A-Za-z0-9_-]/, '_').gsub(' ', '_')
encode_str = truncate(encode_str, 97)
encode_str.gsub(/[^.A-Za-z0-9_-]/, '_').gsub(' ', '_')
end

# Create methods to get and set display name
Expand Down

0 comments on commit 0849ac0

Please # to comment.