backend.ai icon indicating copy to clipboard operation
backend.ai copied to clipboard

refactor: change regex of project to allow unicode except any whitespace

Open lizable opened this issue 1 year ago • 0 comments

This PR resolves #1658. Before this PR every client-side got "400 Bad Request" error, which is originated from regex that only allows alphanumeric characters,-(hyphen) and _(underscore). After applying this PR will allow unicode characters, such as Korean(e.g. "프로젝트"), But not allowing any whitespaces.

Checklist: (if applicable)

  • [x] Milestone metadata specifying the target backport version
  • [x] Mention to the original issue
  • [ ] Documentation
  • [x] API server-client counterparts (e.g., manager API -> client SDK)
  • [x] Test case(s) to demonstrate the difference of before/after

Screenshot(s)

Before Screenshot 2023-10-27 at 3 45 29 PM

After Screenshot 2023-10-27 at 3 33 27 PM

lizable avatar Oct 27 '23 06:10 lizable