kbancerz / kimai-python

Kimai REST Client for Python
MIT License
7 stars 6 forks source link

Fix and improve parameter validation for TimesheetApi.api_timesheets_get #2

Closed MPW1412 closed 4 years ago

MPW1412 commented 4 years ago
 - Fix: user could not be set because of wrong regex escaping
 - make final comma optional for inputs which can hold multiple numbers
 - use re.match instead of re.search to start at the begining of the
   string in order to prevent inputs like ”abc123“ to be valid
 - Add $ to all patters to prevent inputs like ”123asdf“ as number
 - adapted error descriptions