Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse hour with hyphen #1315

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 27, 2023

  1. Add test case demonstrating problem

    Fuzzy parsing fails when the string ends with `-`.
    dmj111 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    a4db3a7 View commit details
    Browse the repository at this point in the history
  2. Fix parsing bug with - at end of string

    The parsing logic assumed a + or - is followed by more data.  One of
    those at the end of the string could cause an indexing error.
    
    This change adds a check for the token list length before looking at
    the next token.
    dmj111 committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    44b49e1 View commit details
    Browse the repository at this point in the history