Skip to content

Commit 11c46db

Browse files
committed
fix(filelink): Fix regexp for safari browser
1 parent 7d0c802 commit 11c46db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/filelink.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ export interface PdfConvertParams {
420420
pages?: (string | number)[];
421421
}
422422

423-
const handleRegexp = new RegExp('^([_\\w\\-]+){20}$');
423+
const handleRegexp = /^[\w\-]{20}$/;
424424

425425
/**
426426
* Class for handling filelinks. For now its supports all filestack transforms.

0 commit comments

Comments
 (0)