deleteUrlUnsafeCharacters static method

String deleteUrlUnsafeCharacters(
  1. String string
)

Implementation

static String deleteUrlUnsafeCharacters(String string) =>
    string.replaceAll(RegExp(r'[^a-z0-9\-]'), '');