Returns whether the input contains a digit.
static bool hasDigit(String input) => RegExp(r'\d').hasMatch(input);