This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def three_periods_to_ellipsis | |
self.gsub("...", "…") | |
end | |
def straight_double_quotes_to_smart_double_quotes | |
self.gsub(/\B"\b([^"“”„‟″‶\r\n]+)\b"\B/, '“\1”') | |
end | |
def straight_single_quotes_to_smart_single_quotes | |
self.gsub(/\B'\b([^'‘’‚‛′‵\r\n]+)\b'\B/, '‘\1’') |