RegexOutput constructor

RegexOutput(
  1. Map config
)

Create a new instance

Implementation

RegexOutput(super.config)
    : regex = [
        for (String pattern in config['patterns'])
          RegExp(pattern,
              multiLine: config['multiLine'] ?? false,
              caseSensitive: config['caseSensitive'] ?? true,
              unicode: config['unicode'] ?? false,
              dotAll: config['dotAll'] ?? false)
      ].lock,
      file = File(config['path']
          .toString()
          .replaceAll("%worker%", Isolate.current.debugName ?? '0')),
      escape = config['escape'];