invalidDeviceName function

bool invalidDeviceName(
  1. String test
)

Returns false if the device name does not match sshnpDeviceNameRegex

Implementation

bool invalidDeviceName(String test) {
  return RegExp(sshnpDeviceNameRegex).allMatches(test).first.group(0) != test;
}