Skip to content

Commit

Permalink
Merge pull request #150 from pwgit-create/parsing_improvment
Browse files Browse the repository at this point in the history
Parsing improvment
  • Loading branch information
pwgit-create committed Jun 25, 2024
2 parents bf5a022 + bf6cff4 commit 4804384
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,11 @@ private static String removeDelimiters(String input, boolean isStartDelimiter) {
if (isStartDelimiter) {
delimiter = CommonStringConstants.JAVA_CODE_GENERATION_START_DELMITER_STRING;
returnValue = RemoveAllExceptTheFirstOccurrenceOfaAWord(returnValue, delimiter);
returnValue = RemoveAllExceptTheFirstOccurrenceOfaAWord(returnValue,delimiter + "\n");
} else if (!isStartDelimiter) {
delimiter = CommonStringConstants.JAVA_CODE_GENERATION_END_DELMITER_STRING;
returnValue = RemoveAllExceptTheLastOccurrenceOfWord(returnValue, delimiter);
returnValue = RemoveAllExceptTheLastOccurrenceOfWord(returnValue,delimiter+"\n");
}
} catch (Exception e) {
log.debug("Error on delimiter String removal process");
Expand Down

0 comments on commit 4804384

Please sign in to comment.