TODO: def validate(self) #2

Closed
opened 2020-11-15 15:24:16 +01:00 by vlw · 0 comments
vlw commented 2020-11-15 15:24:16 +01:00 (Migrated from codeberg.org)

Add an actual validation script here:
github.com/VictorWesterlund/labylib@488c64a45d/labylib/Cape.py (L40-L41)

What should be validated are the following:

  1. Check the supplied PHPSESSID follows spec pattern. Here's a RegEx for it too /^[-,a-zA-Z0-9]{1,128}$/
  2. Supplied file existence at path
  3. (Maybe) PNG-dimensions depending on cosmetic requirement
**Add an actual validation script here:** https://github.com/VictorWesterlund/labylib/blob/488c64a45d8239e71ee5dbb0006ffb3c7c47d66e/labylib/Cape.py#L40-L41 What should be validated are the following: 1. Check the supplied PHPSESSID follows spec pattern. Here's a RegEx for it too `/^[-,a-zA-Z0-9]{1,128}$/` 2. Supplied file existence at path 3. (Maybe) PNG-dimensions depending on cosmetic requirement
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
vlw/labylib#2
No description provided.