Skip to content
This repository was archived by the owner on Aug 5, 2026. It is now read-only.
This repository was archived by the owner on Aug 5, 2026. It is now read-only.

Feature addition: ens_cure: Enhance disallowed sequence to include "ignored" characters #47

Description

@Carbon225

ignored characters are first stripped from the input and the disallowed sequences are reported without them.

ens_process('nick.\ufe0f\ufe0f.eth').error
>>> CurableSequence(code="EMPTY_LABEL", index=4, sequence="..", suggested=".")
ens_process('01\ufe0f--345').error
>>> CurableSequence(code="HYPHEN", index=2, sequence="--", suggested="")
ens_process('01-\ufe0f-345').error
>>> CurableSequence(code="HYPHEN", index=2, sequence="--", suggested="")
ens_process('\ufe0f\'b').error
>>> CurableSequence(code="FENCED_LEADING", index=0, sequence="’", suggested="")

This affects only some CurableErrors. ens_cure still works but uses an additional pass which first removes the ignored characters. The problem is that the reported sequence does not match the input. I will be working on a fix.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions