Skip to content

gsub with empty regex doesn't terminate #1206

@4z3

Description

@4z3

Calling gsub with an empty regex will run forever. Example:

$ jq -n '"" | gsub(""; "")'

Not sure if this is a bug or expected behavior, but terminating with an error might be more appropriate :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions