Skip to content

fix: Allow hyphen and underscore in filename#140

Merged
Meldiron merged 1 commit intomainfrom
fix-filename-validator
Oct 7, 2025
Merged

fix: Allow hyphen and underscore in filename#140
Meldiron merged 1 commit intomainfrom
fix-filename-validator

Conversation

@hmacr
Copy link
Contributor

@hmacr hmacr commented Oct 7, 2025

Allows hyphen and underscore as valid characters for filename

Related: appwrite/appwrite#10501

Summary by CodeRabbit

  • New Features

    • Expanded filename validation to allow dashes (-) and underscores (_), in addition to letters, numbers, and dots.
    • Validation remains strict: only these characters are accepted; empty or non-text inputs are rejected.
  • Tests

    • Updated test cases to cover newly accepted filename patterns (e.g., test-test, test_test, mixed combinations).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants