Skip to content

Use POSIX bracket expressions in raw regex literals #31

Open
@Forthoney

Description

@Forthoney

We should consider using POSIX bracket expressions instead of raw regex patterns where applicable since POSIX bracket expressions better express the intention of a regex pattern.
Take FIELD_VALUE = /[^\000-\037]*/ in connection.rb for example. Expressing /[^\000-\037]*/ as [[:print:]]* does a better job of expressing that a field value must be a printable value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions