Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Error in TryIT/attendance/urls.py. NIE regex is not being applied #159

Open
1 of 2 tasks
onmax opened this issue May 21, 2019 · 3 comments
Open
1 of 2 tasks

Error in TryIT/attendance/urls.py. NIE regex is not being applied #159

onmax opened this issue May 21, 2019 · 3 comments

Comments

@onmax
Copy link
Member

onmax commented May 21, 2019

The request should be accepting the following regex:

  • nifRexp: /^[0-9]{8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/i
  • nieRexp: /^[XYZ]{1}[0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/i

The file that should be fix is this one

@FORGIS98
Copy link

In progress here

@onmax
Copy link
Member Author

onmax commented Dec 25, 2019

It will be nice to add .toUpperCase() or check the letter for lower case as well

@FORGIS98
Copy link

FORGIS98 commented Dec 26, 2019

I've added an ignore-case/case insensitive. Should work fine, I tested on https://regex101.com/ and looks good ^_^

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants