CriticalBashPattern.regex constructor

CriticalBashPattern.regex(
  1. String label,
  2. RegExp pattern
)

A regex-shaped entry: matches when pattern matches the raw command.

Implementation

CriticalBashPattern.regex(this.label, RegExp pattern)
  : _test = pattern.hasMatch;