Open nus-pe-bot opened 2 weeks ago
Thank you for your bug report. Indeed, this is an oversight on our end. It appears the regex anchors went missing during refactoring, resulting in substrings being matched rather than the entire string.
Thank you for pointing this out!
--
Input: add_student n/ben i/A1234567AA Expected output: Error! Matric Number should start with "A", followed by 7 digits, and end with an uppercase letter (e.g., A1234567X) Actual output: Student ben (A1234567AA) added successfully!
Similar bug can also be observed for the starting character
Users can have accidentally inputted an extra character at the end, so the program should be able to check for that extra character.
[original: nus-cs2113-AY2425S1/pe-interim#132] [original labels: severity.Medium type.FunctionalityBug]