QRCoder icon indicating copy to clipboard operation
QRCoder copied to clipboard

Regex apostrophe dosn't match with Adress

Open Seekny opened this issue 3 years ago • 0 comments

Hello,

i found an issue when im trying to add a new Client with the method : SwissQrCode.Contact.WithStructuredAddress();

There is a Regex as define in the library like : @"^([a-zA-Z0-9.,;:'\ +-/()?*[]{}\`´~ ]|[!""#%&<>÷=@_$£]|[àáâäçèéêëìíîïñòóôöùúûüýßÀÁÂÄÇÈÉÊËÌÍÎÏÒÓÔÖÙÚÛÜÑ])*$" on the Street parameter.

When i had the follow string 'Route du Poirier à l’âne', i got the exception :

"Name must match the following pattern as defined in pain.001: {charsetPattern}"

It appears that the apostrophe between the l & âne is not valid.

Is it possible to add this apostrophe : < ’ > ?

Sorry for bad english

Seekny avatar Feb 11 '22 13:02 Seekny