Skip to content

Commit 9f0ecb9

Browse files
committed
add paren
1 parent a65cc4e commit 9f0ecb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function QiniuJsSDK() {
182182
* @return {Boolean} file is a image or not
183183
*/
184184
this.isImage = function(url) {
185-
return /\.(png|jpg|jpeg|gif|bmp)$/i.test(url);
185+
return (/\.(png|jpg|jpeg|gif|bmp)$/i).test(url);
186186
};
187187

188188
/**

0 commit comments

Comments
 (0)