Repository navigation
Commit 85d2800
* 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
* 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
* refactor: change the call in order to align with the naming change
* fix: return null instead of undefined
---------
Co-authored-by: Ugur Saglam <106508695+ugur-vaadin@users.noreply.github.com>
Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
1 parent 97f47a8 commit 85d2800
2 files changed
Lines changed: 36 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
495 | 515 | | |
496 | 516 | | |
497 | 517 | | |
| |||
879 | 899 | | |
880 | 900 | | |
881 | 901 | | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
| 902 | + | |
| 903 | + | |
888 | 904 | | |
889 | 905 | | |
890 | 906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
193 | 207 | | |
194 | 208 | | |
195 | 209 | | |
| |||
0 commit comments