Explorar o código

eclipse plugin: cope with various file names

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
be262cf70b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      eclipse-plugin/src/starpu/handlers/SvgHandler.java

+ 1 - 1
eclipse-plugin/src/starpu/handlers/SvgHandler.java

@@ -54,7 +54,7 @@ public class SvgHandler extends AbstractHandler {
 				else
 				{
 					String map = TraceUtils.readFileToString(workDir + "/output.map");
-					Pattern p = Pattern.compile("href=\"[a-zA-Z./]+#");
+					Pattern p = Pattern.compile("href=\"[^#\"]+#");
 					IPath ipath = ((IPathEditorInput) input).getPath().makeAbsolute();
 					String chemin = ipath.toString();
 					String replaceBy = "href=\"" + chemin + "#";