You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: Add WSpace as a valid Unicode property alias for White_Space
The table of Binary Unicode property aliases defines the aliases for all Unicode properties. In all cases but one, the definition allows the use of the Unicode property long name, and the corresponding Unicode property short name as a valid alias. There is one exception to this with the Unicode property White_Space that defines the alias space.
Unicode property aliases defines the aliases for the property White_Space with the property short name WSpace, and the "Other alias" of space.
To be consistent with the other properties, the short property name WSpace should be added as a valid alias to the property White_Space. The Unicode property alias space should be preserved.
v8 and jsc already support WSpace as a valid property alias for White_Space.
The text was updated successfully, but these errors were encountered:
@michaelficarra the reason for this is about expected compatibility. Engines that use some third party library that understands the alias WSpace (eg: v8, jsc) work different than engines than the ones that follow this part of the standard to the letter (eg: QuickJS).
If people rather write /\p{White_Space}/v, /\p{space}/v, or /\p{WSpace}/v, this is something that I do not have an opinion and would let them have this the way that it works best for them.
OP is right; we somehow forgot to include the WSpace alias.
I too prefer not using aliases but ECMAScript does support them, and this is the only known case where we officially support the property but not all its aliases.
Description: Add
WSpace
as a valid Unicode property alias forWhite_Space
The table of Binary Unicode property aliases defines the aliases for all Unicode properties. In all cases but one, the definition allows the use of the Unicode property long name, and the corresponding Unicode property short name as a valid alias. There is one exception to this with the Unicode property
White_Space
that defines the aliasspace
.Unicode property aliases defines the aliases for the property
White_Space
with the property short nameWSpace
, and the "Other alias" ofspace
.To be consistent with the other properties, the short property name
WSpace
should be added as a valid alias to the propertyWhite_Space
. The Unicode property aliasspace
should be preserved.v8 and jsc already support
WSpace
as a valid property alias forWhite_Space
.The text was updated successfully, but these errors were encountered: