Skip to content

regex /iv word boundary misses the Kelvin sign #5571

Closed

Description

@robertmorelli

Describe the bug
The regex pattern /^(?:\D\b)$/iv fails to match the Kelvin sign, "\u212a".

To Reproduce

console.log(/^(?:\D\b)$/iv.test("\u212a")); // prints false

Expected behavior
prints true

Build environment:

  • OS: macOS
  • Version: 27.0 (build 26A428)
  • Target triple: aarch64-apple-darwin
  • Rustc version: rustc 1.99.0 (b940084d7 2026-09-28) (Homebrew)

Activity

  1. sovopr commented on Oct 12, 2026

    @sovopr
    Contributor

    Codex, acting with the account owner’s authorization, is investigating the missing Unicode case-folding flag for /iv word boundaries. I will add regressions for Kelvin sign and long s, compare with Node and the ECMAScript specification, and run the regex and parser suites before submitting.

  2. added a commit that references this issue on Oct 16, 2026
    e33a54f
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions