Skip to content

LABEL_SELFREF when no numbers #482

Closed

Description

@yakra

Since #472, a named or lettered designation appearing after / (e.g. I-95/NJTpk) won't get flagged LABEL_SELFREF.
Sure, it's not supposed to happen anyway, but that doesn't mean the datacheck should be skipped.

In practice there were no diffs, but still.

There are multiple ways to skin this cat, of comparable efficiency.
Consider the original approach, digit_starts pointing past the end of the string.
Compared to setting it to the beginning, it makes more sense to compare an emtpy string + the full string than the same full string twice.

Activity

  1. added
    LABEL_SELFREF
    on Nov 14, 2021
  2. yakra commented on Nov 15, 2021

    @yakra
    ContributorAuthor

    Since #472 ...
    In practice there were no diffs

    LOL this is correct but they didn't get flagged before either. Originally the last number had to be a digit to proceed.

  3. yakra commented on Nov 15, 2021

    @yakra
    ContributorAuthor

    it makes more sense to compare an emtpy string

    Comparing an empty string on a named/lettered route with a label ending in / yields FPs.

    nj.palintpkwy;I-95/;;;INVALID_FINAL_CHAR;/
    nj.palintpkwy;I-95/;;;LABEL_SELFREF;
    nj.palintpkwy;ToUS9W/;;;INVALID_FINAL_CHAR;/
    nj.palintpkwy;ToUS9W/;;;LABEL_SELFREF;
    

    Easy enough to fix; just skip the check if the pointer's at the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    LABEL_SELFREFdatachecklow prioritypendingrobustness

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions