Skip to content

Commit

Permalink
opening_hours.js: Fixed false positive in missing PH check for value …
Browse files Browse the repository at this point in the history
…'24/7'.
  • Loading branch information
ypid committed May 16, 2015
1 parent 05752f1 commit d3c6f69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions opening_hours.js
Original file line number Diff line number Diff line change
Expand Up @@ -3964,6 +3964,7 @@
/* Check for missing PH. {{{ */
if ( warnings_severity >= 5
&& !has_token['PH']
&& !has_token['24/7']
&& !done_with_warnings
&& (
(
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4610,7 +4610,7 @@ test.addTest('Error tolerance: Full range', [
'24 hours 7 days a week',
], '2012.10.01 0:00', '2012.10.08 0:00', [
[ '2012.10.01 0:00', '2012.10.08 0:00' ],
], 1000 * 60 * 60 * 24 * 7, 0, true, nominatiomTestJSON, 'not only test');
], 1000 * 60 * 60 * 24 * 7, 0, true, nominatiomTestJSON, 'not only test', { 'warnings_severity': 5 } );
// }}}

// values which should return a warning {{{
Expand Down

0 comments on commit d3c6f69

Please sign in to comment.