X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FPropertyFile.java;h=4e8542f9d5da13427f902182ae5d668c0a06dd56;hp=162fc819379d66ba4d4a44a6ca10a8ec17b55c7c;hb=865f9307f2434c6908077fce669c6595a24e7532;hpb=6d823a46d8c2084a483f628c4c45d833d54592a7 diff --git a/src/org/ibex/js/PropertyFile.java b/src/org/ibex/js/PropertyFile.java index 162fc81..4e8542f 100644 --- a/src/org/ibex/js/PropertyFile.java +++ b/src/org/ibex/js/PropertyFile.java @@ -37,7 +37,8 @@ public class PropertyFile extends JS { } } - public static String escape(String s) { return s.replaceAll("\\", "\\\\").replaceAll(".", "\\.").replaceAll("=","\\="); } + public static String escape(String s) { + return s.replaceAll("\\\\", "\\\\\\\\").replaceAll(".", "\\\\.").replaceAll("=","\\\\="); } public PropertyFile(File f) throws IOException { this.f = f; this.p.load(new FileInputStream(f)); } public void put(Object key, Object val) throws JSExn { new Minion("").put(key, val); } public Enumeration keys() throws JSExn { return new Minion("").keys(); }