-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make extension patterns match the end of the file name (#5652)
* fix: make extension patterns match the end of the file name * fix: make the regex safari-compatible * refactor: remove extra lines * refactor: update naming for clarification * refactor: rename file name and extension in test * Update packages/upload/test/adding-files.test.js Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com> * test: add a test for rejecting files that have partial extension match * refactor: extract regex logic in a loop and make it a function * Update packages/upload/src/vaadin-upload.js Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com> * refactor: change the call in order to align with the naming change * fix: return null instead of undefined --------- Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
- Loading branch information
1 parent
97f47a8
commit b9bb6ed
Showing
2 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters