ZORALab / Hestia

One Peaceful Frontend+Backend Software Library Suite.
https://hestia.zoralab.com
Other
19 stars 1 forks source link

Repair the zoralabFORM's Email Regex Bug #441

Closed hollowaykeanho closed 6 months ago

hollowaykeanho commented 1 year ago

Description

Please provide a short description of what you have encountered below.

The correct regex should be as follows:

(?![_.\-])((?![_.\-][_.\-])[a-z\d_.+\-]){0,63}[a-z\d]@((?![\-])((?![\-][\-])[a-z\d\-]){0,63}[a-z\d]\.){1,2}([a-z]{2,14}\.)?[a-z]{2,14}

Not:

(?![_.-])((?![_.-][_.-])[a-z\d_.-]){0,63}[a-z\d]@((?!-)((?!--)[a-z\d-]){0,63}[a-z\d]\.){1,2}([a-z]{2,14}\.)?[a-z]{2,14}

Problem:

  1. forgot to cancel dash - where it has a special function meaning. Blink browser rejected the currently documented one.
  2. need to support + suffix.

Link

Please provide the documentation link(s) below.

https://hestia.zoralab.com/en/specs/hestiagui/zoralabform/ (Email Field, first one)

Expected Presentation

Please specify the expected presentation of the documentation.

Regex is correct and can be copy-pasted easily.

Current Presentation

Please specify the current presentation of the documentation.

Regex is incorrect.

Attachment

Please drag and drop the necessary data files (e.g. screenshot, logs, etc)
below.