sadais-piui 1.2.7-beta140 → 1.2.7-beta142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -157,7 +157,7 @@ const PI_DEFAULT_FN_FLAG = 'PI_DEFAULT_FN_FLAG'
|
|
|
157
157
|
|
|
158
158
|
function isImageFilename(filename) {
|
|
159
159
|
const imageExtensions = /\.(jpg|jpeg|png|gif|bmp|tiff|webp)$/i
|
|
160
|
-
return imageExtensions.test(filename)
|
|
160
|
+
return imageExtensions.test(filename) || filename.startsWith('data:')
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
function isVideoFilename(filename) {
|