normalizeQuotes function

String normalizeQuotes(
  1. String str
)

Normalizes curly quotes to straight quotes.

Implementation

String normalizeQuotes(String str) {
  return str
      .replaceAll(leftSingleCurlyQuote, "'")
      .replaceAll(rightSingleCurlyQuote, "'")
      .replaceAll(leftDoubleCurlyQuote, '"')
      .replaceAll(rightDoubleCurlyQuote, '"');
}