1. 20 Jul, 2022 1 commit
  2. 19 Jul, 2022 1 commit
  3. 12 Jan, 2022 1 commit
  4. 11 Nov, 2021 1 commit
  5. 09 Nov, 2021 1 commit
  6. 04 Nov, 2021 1 commit
  7. 03 Nov, 2021 1 commit
  8. 15 Jun, 2021 4 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 · a985c5ae
      Leon Mauritz Möller authored
      This commit backports 445b1d8f from
      fix/id_short_validation.
      
      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.
      a985c5ae
  11. 24 Apr, 2021 1 commit
  12. 31 Mar, 2021 3 commits
  13. 30 Mar, 2021 3 commits
  14. 29 Mar, 2021 3 commits
  15. 24 Mar, 2021 2 commits
  16. 10 Mar, 2021 5 commits
  17. 08 Mar, 2021 3 commits
  18. 04 Mar, 2021 7 commits