1. 01 Nov, 2021 1 commit
  2. 28 Oct, 2021 4 commits
  3. 07 Sep, 2021 1 commit
  4. 31 Jul, 2021 1 commit
  5. 30 Jul, 2021 1 commit
  6. 08 Jul, 2021 1 commit
  7. 06 Jul, 2021 2 commits
  8. 03 Jul, 2021 3 commits
  9. 28 Apr, 2021 1 commit
  10. 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
  11. 09 Apr, 2021 3 commits
  12. 07 Apr, 2021 1 commit
  13. 05 Apr, 2021 3 commits
  14. 31 Mar, 2021 1 commit
  15. 30 Mar, 2021 1 commit
  16. 15 Mar, 2021 1 commit
  17. 25 Feb, 2021 3 commits
  18. 24 Feb, 2021 4 commits
  19. 20 Feb, 2021 3 commits
  20. 19 Feb, 2021 4 commits