Merge pull request #474 from ypid/fix-parser
Fixed problem with OpeningHoursParser.
This commit is contained in:
commit
5213fb325b
2 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
||||||
Authors of patches and pull requests:
|
Authors of patches and pull requests:
|
||||||
|
|
||||||
Hardy Mueller
|
Hardy Mueller
|
||||||
|
Robin `ypid` Schneider
|
||||||
|
|
|
@ -468,7 +468,7 @@ public class OpeningHoursParser {
|
||||||
// time starts
|
// time starts
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ch == 'o' && r.charAt(k+1) == 'f' && r.charAt(k+1) == 'f'){
|
if (r.substring(k, k + 2).equals("off")) {
|
||||||
// value "off" is found
|
// value "off" is found
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue