Skip to content

Commit

Permalink
OAK-10341: TreeStore - fix config string parsing (which broke Windows…
Browse files Browse the repository at this point in the history
… path separators)
  • Loading branch information
reschke committed Sep 6, 2024
1 parent bb4ecd1 commit c47a8f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static Store build(String config) throws IllegalArgumentException {
if (config == null || config.isEmpty()) {
return new MemoryStore(new Properties());
}
config = config.replace(' ', '\n');
config = config.replace(' ', '\n').replace("\\", "\\\\");
Properties prop = new Properties();
try {
prop.load(new StringReader(config));
Expand Down

1 comment on commit c47a8f6

@thomasmueller
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot! Yes I have to admit I didn't test on Windows...

Please sign in to comment.