stringToRegexp function

RegExp stringToRegexp(
  1. String path,
  2. List<Key>? keys, {
  3. String? delimiter,
  4. String prefixes = './',
  5. bool strict = false,
  6. bool start = true,
  7. bool end = true,
  8. String encode(
    1. String
    )?,
})

Implementation

RegExp stringToRegexp(
  String path,
  List<Key>? keys, {
  String? delimiter,
  String prefixes = './',
  bool strict = false,
  bool start = true,
  bool end = true,
  String Function(String)? encode,
}
    // options?: TokensToRegexpOptions & ParseOptions
    ) {
  return tokensToRegexp(
      parse(path, delimiter: delimiter, prefixes: prefixes), keys,
      strict: strict, start: start, end: end, encode: encode);
}