HubSpot / jinjava

Jinja template engine for Java
Apache License 2.0
701 stars 169 forks source link

Handle trailing note without end #1129

Closed jasmith-hs closed 12 months ago

jasmith-hs commented 12 months ago

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).