30 31 32
# File 'lib/pgn/game.rb', line 30 def clean_text(text) text&.gsub(/{(.*)}/, '\1')&.gsub(/\s+/, ' ')&.strip end