Skip to content

Commit

Permalink
Delete a dot only at the end of the string
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Oct 18, 2024
1 parent 7005b8a commit 03699cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marc_to_solr/lib/traject_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@
next if subjects.present?
record.fields.select { |field| field.tag[0] == '6' }.each do |field|
next unless field['2'] == 'fast'
value = field['a']&.delete('.')
value = field['a']&.delete_suffix('.')
accumulator << value
end
end
Expand Down

0 comments on commit 03699cc

Please sign in to comment.