LOVDnl / LOVD3

LOVD3 development repository
http://www.LOVD.nl
GNU General Public License v3.0
25 stars 4 forks source link

Let age fields contain ranges #274

Open ifokkema opened 7 years ago

ifokkema commented 7 years ago

The age fields are currently set to the following format:

/^([<>]?\d{2,3}y(\d{2}m(\d{2}d)?)?)?\??$/

However, some data would contain 10y-12y, which currently cannot be stored. 11y would currently be the closest match in this case, but would not be correct. Allowing the fields to contain a range would solve this.

Note: Check the code that does calculations based on this field, and adapt as necessary.

ifokkema commented 7 years ago

Duplicate of #281.