isDirectiveValueInvalid method

bool isDirectiveValueInvalid()

Validates the given string to be a valid CSP directive.

Implementation

bool isDirectiveValueInvalid() {
  return contains(RegExp(';|,'));
}