PropertyFile escapification bugfix
[org.ibex.core.git] / src / org / ibex / js / PropertyFile.java
index 162fc81..4e8542f 100644 (file)
@@ -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(); }