Fixed problem with OpeningHoursParser.

The parser did not distinguish between "off" (valid in opening_hours)
and "of".
This commit is contained in:
Robin Schneider 2013-07-23 22:48:30 +02:00
parent 7813006b96
commit 3f963b511f
2 changed files with 7 additions and 6 deletions

View file

@ -1,3 +1,4 @@
Authors of patches and pull requests :
Authors of patches and pull requests:
Hardy Mueller
Robin `ypid` Schneider

View file

@ -468,7 +468,7 @@ public class OpeningHoursParser {
// time starts
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
break;
}