Skip to content

Commit

Permalink
Remove duplicated sanitize_asana_html_notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Oct 2, 2024
1 parent 82a3bc5 commit b71c379
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,6 @@ def self.load_file(file)
rescue StandardError
UI.user_error!("Error: The file '#{file}' does not exist.")
end

def self.sanitize_asana_html_notes(content)
content.gsub(/\s+/, ' ') # replace multiple whitespaces with a single space
.gsub(/>\s+</, '><') # remove spaces between HTML tags
.strip # remove leading and trailing whitespaces
.gsub(%r{<br\s*/?>}, "\n") # replace <br> tags with newlines
end
end
end
end
Expand Down

0 comments on commit b71c379

Please sign in to comment.