Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created December 18, 2021 01:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zdi-team/90784c3759878934289753b199dc37fd to your computer and use it in GitHub Desktop.
Save zdi-team/90784c3759878934289753b199dc37fd to your computer and use it in GitHub Desktop.
// found variable end marker
if (nestedVarCount == 0) {
String varNameExpr = new String(chars, startPos + startMatchLen, pos - startPos - startMatchLen);
if (substitutionInVariablesEnabled) {
// initialize priorVariables if they're not already set
if (priorVariables == null) {
priorVariables = new ArrayList<>();
}
final StringBuilder bufName = new StringBuilder(varNameExpr);
substitute(event, bufName, 0, bufName.length(), priorVariables);
varNameExpr = bufName.toString();
}
pos += endMatchLen;
final int endPos = pos;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment