dehyphenate static method

String dehyphenate(
  1. String text
)

Implementation

static String dehyphenate(String text) => text.replaceAll(RegExp(r"(\w)-\n(\w)"), r"$1$2").replaceAll("\n", " ");