Avoids a StringIndexOutOfBoundsException when a template ends in {# by checking that the note length is greater than 4. This is a very quick way to check it because I'm not trying to introduce any performance degradation in the processing of notes (aka comments).
Avoids a StringIndexOutOfBoundsException when a template ends in
{#
by checking that the note length is greater than 4. This is a very quick way to check it because I'm not trying to introduce any performance degradation in the processing of notes (aka comments).