refusalOpeningPattern top-level property

RegExp refusalOpeningPattern
final

Replies that open with a refusal: I can't, I cannot, I'm sorry, I am sorry or I won't, with a straight or a curly apostrophe, after leading white space.

Implementation

final refusalOpeningPattern = RegExp(
  r"^\s*(I can['’]t|I cannot|I['’]m sorry|I am sorry|I won['’]t)",
);