Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

\p{L} does not match feminine ordinal indicator (ª) #115

Description

@Thom1729

Prerequisites

Description

The feminine ordinal indicator ª is in Lo, so \p{L} should match it. But it doesn't. The masculine ordinal indicator does match.

The bug does not exist in onigasm 2.2.5.

Steps to Reproduce

import { OnigRegExp } from 'oniguruma';

const regExp = new OnigRegExp('\\p{L}')

console.log(regExp.testSync('a')); // true
console.log(regExp.testSync('ª')); // false
console.log(regExp.testSync('º')); // true
console.log(regExp.testSync('א')); // true

Expected behavior:

All should be true.

Actual behavior:

The second is false.

Reproduces how often:

Always.

Versions

node-oniguruma 7.2.3

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions