From f287acd1ff5b9273b3fa9a83ab028aea5861f1cb Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 9 Aug 2022 18:06:37 +0100 Subject: [PATCH] Fix external links in descriptions of Maven Plugin's goal parameters Closes gh-29171 --- .../boot/build/mavenplugin/PluginXmlParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/PluginXmlParser.java b/buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/PluginXmlParser.java index 35e163b82d75..061cd0103906 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/PluginXmlParser.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/mavenplugin/PluginXmlParser.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2020 the original author or authors. + * Copyright 2012-2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,7 +113,7 @@ private String format(String input) { return input.replace("", "`").replace("", "`").replace("<", "<").replace(">", ">") .replace("
", " ").replace("\n", " ").replace(""", "\"").replaceAll("\\{@code (.*?)}", "`$1`") .replaceAll("\\{@link (.*?)}", "`$1`").replaceAll("\\{@literal (.*?)}", "`$1`") - .replaceAll("(.*?)", "\\$1[\\$2]"); + .replaceAll("(.*?)", "$1[$2]"); } private static final class IterableNodeList implements Iterable {