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
Registration plate:
Line 417: $regex = '/^(\d{2,3})[\ -]([A-Z][A-Z]?)[\ -]\d{1,6}$/';
The regex should allow for reg without spaces / special characters. I.e. make them optional $regex = '/^(\d{2,3})[\ -]?([A-Z][A-Z]?)[\ -]?\d{1,6}$/';
Line 448: if (!Validate_IE::yearBetween87and12($year)) {
Function continues to check years for 2 digit plates rather than 3 digit ones (which should be just greater that year 12. I reckon the line could just be:
if ($year < 13) {
return false;
}
The text was updated successfully, but these errors were encountered:
QuietNoise
changed the title
I suggest som fixes 7 imrovements
I suggest some fixes & imrovements
Jun 3, 2021
Registration plate:
Line 417:
$regex = '/^(\d{2,3})[\ -]([A-Z][A-Z]?)[\ -]\d{1,6}$/';
The regex should allow for reg without spaces / special characters. I.e. make them optional
$regex = '/^(\d{2,3})[\ -]?([A-Z][A-Z]?)[\ -]?\d{1,6}$/';
Line 448:
if (!Validate_IE::yearBetween87and12($year)) {
Function continues to check years for 2 digit plates rather than 3 digit ones (which should be just greater that year 12. I reckon the line could just be:
The text was updated successfully, but these errors were encountered: