I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 9b4144b8 authored by jrandom's avatar jrandom Committed by zzz
Browse files

add support for using the '@' character in place of the rotation #, for...

add support for using the '@' character in place of the rotation #, for situations where stupid config files treat '#' as the end of the line and beginning of a comment...
parent bce5b442
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ class LogWriter implements Runnable { ...@@ -165,7 +165,7 @@ class LogWriter implements Runnable {
private File getNextFile(String pattern) { private File getNextFile(String pattern) {
File f = null; File f = null;
if (pattern.indexOf('#') < 0) { if ( (pattern.indexOf('#') < 0) && (pattern.indexOf('@') <= 0) ) {
return new File(pattern); return new File(pattern);
} }
...@@ -214,7 +214,7 @@ class LogWriter implements Runnable { ...@@ -214,7 +214,7 @@ class LogWriter implements Runnable {
char c[] = pattern.toCharArray(); char c[] = pattern.toCharArray();
StringBuffer buf = new StringBuffer(); StringBuffer buf = new StringBuffer();
for (int i = 0; i < c.length; i++) { for (int i = 0; i < c.length; i++) {
if (c[i] != '#') if ( (c[i] != '#') && (c[i] != '@') )
buf.append(c[i]); buf.append(c[i]);
else else
buf.append(num); buf.append(num);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment