TypeScript: Extend documentation on 6353

According to S6353 \d is equivalent to [0-9]. This is (turned out, I did not know) indeed the case for JavaScirpt/ECMAScript, but for most regex engines it is not.

The latter only matches the 10 digits defined in ASCII, where the first matches all characters defined as number in Unicode. I think be stating explicitly that this is only the case due to a limitation of the ECMASCript regex engine, it will help people to understand the suggestion, whithout (in later cases) applying it blindly in other languages where it turn out to make a difference.

1 Like

Hello @Corniel,

thank you very much for this feedback, this is an excellent point that we should indeed mention in the description.

I created a ticket to complete the rule description with your suggestion.

Cheers!
Victor