Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created December 18, 2021 01:03
Show Gist options
  • Save zdi-team/82ef48a18c23815208fe5e8bd0546559 to your computer and use it in GitHub Desktop.
Save zdi-team/82ef48a18c23815208fe5e8bd0546559 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) {
final StringBuilder bufName = new StringBuilder(varNameExpr);
substitute(event, bufName, 0, bufName.length());
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