Skip to content

use proper token definition in regexes #56

@clux

Description

@clux

In many places we use (\w*) or less commonly (.*) as a shorthand for what rfc4566's definition of a token:

   token-char =          %x21 / %x23-27 / %x2A-2B / %x2D-2E / %x30-39
                         / %x41-5A / %x5E-7E

   token =               1*(token-char)

worth going through and making this conform to the standard where it references token as it would make the library more resilient against future updates to various identifiers undoubtedly introduced in the future.

First seen in #53 ( pr #54 )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions