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
The date validation regex for CII (CII-DT-097) (\d{8})
is insufficient as it only checks that there are at least 8 digits.
For example ab20190101 or 1010101001010101001 is a match.
A better expression would be ^\s*(\d{8})\s*$
which matches exactly 8 digits with only additional white space before and after being allowed.
The text was updated successfully, but these errors were encountered:
whereas the CEN 1.3.8 rules contain this is an explicit rule:
<rulecontext="//udt:DateTimeString[@format = '102']">
<assertid="CII-DT-097"flag="fatal"test="matches(.,'(\d{8})')">[CII-DT-097] - Date time string with format attribute 102 shall be YYYYMMDD.</assert>
</rule>
The date validation regex for CII (CII-DT-097)
(\d{8})
is insufficient as it only checks that there are at least 8 digits.
For example ab20190101 or 1010101001010101001 is a match.
A better expression would be
^\s*(\d{8})\s*$
which matches exactly 8 digits with only additional white space before and after being allowed.
The text was updated successfully, but these errors were encountered: