checkPath method

void checkPath(
  1. String path
)

Implementation

void checkPath(String path) {
  if (':' == path) {
    return;
  }
  if (!RegExp('(' + GenericController.pathDelimiter + '[a-zA-Z0-9\\-]+)*')
      .hasMatch(path)) {
    throw StorageException(('illegal path detected in "' + path) + '"');
  }
}