Skip to content

Instantly share code, notes, and snippets.

@zdi-team
Created December 18, 2021 01:03
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/1ef2649849cadea1d2740b66195818ec to your computer and use it in GitHub Desktop.
Save zdi-team/1ef2649849cadea1d2740b66195818ec to your computer and use it in GitHub Desktop.
// on the first call initialize priorVariables
if (priorVariables == null) {
priorVariables = new ArrayList<>();
priorVariables.add(new String(chars, offset, length + lengthChange));
}
// handle cyclic substitution
checkCyclicSubstitution(varName, priorVariables);
priorVariables.add(varName);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment