correctly read slash doublings in the old project files (IDEA-62669)

This commit is contained in:
peter
2011-03-21 15:49:26 +01:00
parent 0c02c9f7d6
commit 25fac818a7
@@ -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) {