variablePattern method

  1. @visibleForTesting
RegExp variablePattern(
  1. Variable variable
)

the pattern to find variables within the content

Implementation

@visibleForTesting
RegExp variablePattern(Variable variable) => RegExp(
      r'(\{*\S*)'
      '${variable.placeholder}'
      r'(?:b(?:race)?(\d+))?(\w*\}*)',
    );