Skip to content

Commit

Permalink
Merge pull request #9 from prezly/fix/QRF-914-allow-space
Browse files Browse the repository at this point in the history
[QRF-914] Allow space
  • Loading branch information
aspirisen authored Feb 2, 2023
2 parents f46b6a0 + b631dff commit c746a38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/UploadcareFile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('UploadcareFile', function () {

it('should provide a download CDN URL to download the file and replace forbidden characters', function () {
expect(FILE_WITH_FORBIDDEN_SYMBOLS.downloadUrl).toEqual(
'https://cdn.uc.assets.prezly.com/00000000-0000-0000-0000-000000000000/-/inline/no/my__________docum_ent.pdf',
'https://cdn.uc.assets.prezly.com/00000000-0000-0000-0000-000000000000/-/inline/no/my__________docum ent.pdf',
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/lib/normalizeFileName.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sanitizeFileName from 'sanitize-filename';

const forbiddenCharacters = /[% ]/g;
const forbiddenCharacters = /[%]/g;
const replacement = '_';

export function normalizeFileName(filename: string) {
Expand Down

0 comments on commit c746a38

Please sign in to comment.