mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
correctly read slash doublings in the old project files (IDEA-62669)
This commit is contained in:
+5
-1
@@ -26,7 +26,11 @@ import java.util.Map;
|
||||
public class ExpandMacroToPathMap extends PathMacroMap {
|
||||
|
||||
public void addMacroExpand(String macroName, String path) {
|
||||
put("$" + macroName + "$", quotePath(path));
|
||||
String replacement = quotePath(path);
|
||||
String withSlash = StringUtil.trimEnd(replacement, "/") + "/";
|
||||
put("$" + macroName + "$//", withSlash);
|
||||
put("$" + macroName + "$/", withSlash);
|
||||
put("$" + macroName + "$", replacement);
|
||||
}
|
||||
|
||||
public String substitute(String text, boolean caseSensitive) {
|
||||
|
||||
Reference in New Issue
Block a user