Unicode range JS open

validator.js isAlphanumeric el-GR rejects accented Greek that isAlpha accepts

isAlphanumeric el-GR range omits accented Greek that isAlpha accepts

validator.js · validatorjs/validator.js

Symptom

isAlpha('el-GR') uses the Greek range [Α-ώ] (U+0391–U+03CE) but isAlphanumeric('el-GR') still ends at ω ([0-9Α-ω], U+03C9). So isAlphanumeric rejects ό, ύ, ώ and the uppercase Ό/Ύ/Ώ even though isAlpha accepts them, and common words like νερό or πρώτα pass isAlpha but fail isAlphanumeric.

Minimal repro
isAlpha('νερό', 'el-GR')        // true
isAlphanumeric('νερό', 'el-GR') // false  <- ό (U+03CC) sits past the range end ω
Fix

Bump the alphanumeric Greek range to [0-9Α-ώ] so it matches the alpha class.

Fix PR → #validatorjs-el-gr-alphanumeric-range

Also in: JavaScript

← all 93 entries