Skip to content

Commit 434270c

Browse files
author
Jakub Szwacz
committed
Fix storeUrl regex
1 parent d5328c0 commit 434270c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ filepicker.extend('util', function(){
8888
*/
8989
var getFPUrl = function(url){
9090
if (typeof url === 'string') {
91-
var matched = url.match(/(?:cdn.filestackcontent.com|cdn.filepicker.io)[\S]*\/([\S]{20,})/);
91+
var matched = url.match(/(?:^https?:\/\/cdn.filestackcontent.com|^https?:\/\/cdn.filepicker.io)[\S]*\/([\S]{20,})/);
9292
if (matched && matched.length > 1) {
9393
return fp.urls.BASE + '/api/file/' + matched[1];
9494
}

0 commit comments

Comments
 (0)