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

Skip to content
Snippets Groups Projects
Commit ceab4f1f authored by zzz's avatar zzz
Browse files

improve efficiency of addressbook parser

parent 3781b8db
No related branches found
No related tags found
No related merge requests found
......@@ -64,10 +64,11 @@ class ConfigParser {
if (inputLine.startsWith(";")) {
return "";
}
if (inputLine.split("#").length > 0) {
return inputLine.split("#")[0];
int hash = inputLine.indexOf('#');
if (hash >= 0) {
return inputLine.substring(0, hash);
} else {
return "";
return inputLine;
}
}
......
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