Skip to content

Commit

Permalink
finish the regex job
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Jul 23, 2024
1 parent 0b90f49 commit e4061a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public void remove() throws QuickAccessServiceException {
var contentToWrite1 = placesContent.substring(0, openingTagIndex).stripTrailing();

int closingTagEndIndex = placesContent.indexOf('>', placesContent.indexOf("</bookmark", idIndex));
var part2Tmp = placesContent.substring(closingTagEndIndex + 1).split("\\v+", 2); //removing leading vertical whitespaces, but no indentation
var part2Tmp = placesContent.substring(closingTagEndIndex + 1).split("\\A\\v+", 2); //removing leading vertical whitespaces, but no indentation
var contentToWrite2 = part2Tmp[part2Tmp.length - 1];

try (var writer = Files.newBufferedWriter(TMP_FILE, StandardCharsets.UTF_8, StandardOpenOption.WRITE, StandardOpenOption.CREATE, StandardOpenOption.TRUNCATE_EXISTING)) {
Expand Down

0 comments on commit e4061a3

Please sign in to comment.