Skip to content

Implement the regex as the validator for the unit

When a new unit is parsed, the attribute valid is being computed. Implement the following changes:

  • Create a method/property "is_valid" that checks the string of the unit through the regex.
  • Deprecate the old valid attribute and remove all the booleans that initialize this one.
Edited by Jendrik Wenke