Skip to content

string_boundary_linter() could recognize double-anchored regexes as being == #1613

Closed
@MichaelChirico

Description

@MichaelChirico

Replacement for #1166.

grepl("^a_fixed_string$", x) is the same as x == "a_fixed_string", rather than being replaced with startsWith() or endsWith(), == is a better replacement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions