Przeglądaj źródła

eclipse plugin: cope with various file names

Samuel Thibault 4 lat temu
rodzic
commit
be262cf70b

+ 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 + "#";