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

Bug on parsing a complicated US Code section #18

Closed
konklone opened this issue Dec 5, 2012 · 3 comments
Closed

Bug on parsing a complicated US Code section #18

konklone opened this issue Dec 5, 2012 · 3 comments
Milestone

Comments

@konklone
Copy link
Member

konklone commented Dec 5, 2012

cite -p "42 U.S.C. 1320d-2(b)"

yields:

[
    {
        "type": "usc",
        "match": "42 U.S.C. 1320d-2(b)",
        "index": 0,
        "usc": {
            "title": "42",
            "section": "1320d-2",
            "subsections": [
                "b"
            ],
            "id": "42_usc_1320d-2_b",
            "section_id": "42_usc_1320d-2"
        }
    },
    {
        "type": "usc",
        "match": "42 U.S.C. 1320d-2(b)",
        "index": 0,
        "usc": {
            "title": "42",
            "section": "1320d",
            "subsections": [],
            "id": "42_usc_1320d",
            "section_id": "42_usc_1320d"
        }
    },
    {
        "type": "usc",
        "match": "42 U.S.C. 1320d-2(b)",
        "index": 0,
        "usc": {
            "title": "42",
            "section": "2",
            "subsections": [
                "b"
            ],
            "id": "42_usc_2_b",
            "section_id": "42_usc_2"
        }
    }
]
@konklone konklone added this to the 1.0 milestone Feb 9, 2014
@joec
Copy link

joec commented Feb 9, 2014

I think the starting section number needs to be compared against the number after the -. Just a thought.

@konklone
Copy link
Member Author

konklone commented Feb 9, 2014

Yeah, this might be a case of #43, we had a longer discussion about dealing with ranges there.

@konklone
Copy link
Member Author

Actually, this is #44, closing in favor of resolving it there.

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

No branches or pull requests

2 participants