1. 28 Apr, 2021 1 commit
  2. 27 Apr, 2021 1 commit
    • Leon Mauritz Möller's avatar
      model.base: fix id_short validation · 445b1d8f
      Leon Mauritz Möller authored
      In RegEx, the `$` asserts the end of a string or line. When used in
      re.match() it asserts the end of the string by default, unless the last
      character is a newline symbol (`\n`). Then it asserts the end of the string
      *before* the newline. Thus the first regex check doesn't filter valid
      id_shorts ending in a newline, which it should.
      See https://docs.python.org/3.9/library/re.html#index-2
      
      Using re.fullmatch() instead fixes this issue, making the `^` and `$`
      unnecessary as well.
      
      Next to adding a test for this behaviour this commit also simplifies the
      check for an alphabetical character at the start of the id_short.
      And although both checks could also be merged into one, they are left
      separate to be able to report more accurate errors.
      445b1d8f
  3. 09 Apr, 2021 3 commits
  4. 07 Apr, 2021 1 commit
  5. 05 Apr, 2021 3 commits
  6. 30 Mar, 2021 1 commit
  7. 15 Mar, 2021 1 commit
  8. 25 Feb, 2021 3 commits
  9. 24 Feb, 2021 4 commits
  10. 20 Feb, 2021 3 commits
  11. 19 Feb, 2021 5 commits
  12. 17 Feb, 2021 1 commit
  13. 15 Feb, 2021 6 commits
  14. 10 Feb, 2021 1 commit
  15. 09 Feb, 2021 1 commit
  16. 03 Feb, 2021 5 commits