isDoubleEncoded static method

bool isDoubleEncoded(
  1. String string
)

Checks if a string appears to be double-encoded

Implementation

static bool isDoubleEncoded(String string) {
  if (string.isEmpty) return false;
  return RegExp(r'%25[0-9A-F]{2}', caseSensitive: false).hasMatch(string);
}