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

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

Open
1 task done
Thom1729 opened this issue Sep 25, 2021 · 0 comments
Open
1 task done

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

Thom1729 opened this issue Sep 25, 2021 · 0 comments

Comments

@Thom1729
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant