Skip to content

Commit

Permalink
latest change [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Sep 10, 2016
1 parent 65076f9 commit e183b27
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions source/inilike/common.d
Original file line number Diff line number Diff line change
Expand Up @@ -567,15 +567,13 @@ unittest
toReturn.put(value[0..i]);

for (; i < value.length; i++) {
if (value[i] == '\\') {
if (i+1 < value.length) {
const char c = value[i+1];
auto t = pairs.find!"a[0] == b[0]"(tuple(c,c));
if (!t.empty) {
toReturn.put(t.front[1]);
i++;
continue;
}
if (value[i] == '\\' && i+1 < value.length) {
const char c = value[i+1];
auto t = pairs.find!"a[0] == b[0]"(tuple(c,c));
if (!t.empty) {
toReturn.put(t.front[1]);
i++;
continue;
}
}
toReturn.put(value[i]);
Expand Down

0 comments on commit e183b27

Please sign in to comment.