sadais-piui 1.2.7-beta141 → 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,10 +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 (
|
|
161
|
-
imageExtensions.test(filename) ||
|
|
162
|
-
filename.startsWith('data:image/jpeg;base64,')
|
|
163
|
-
)
|
|
160
|
+
return imageExtensions.test(filename) || filename.startsWith('data:')
|
|
164
161
|
}
|
|
165
162
|
|
|
166
163
|
function isVideoFilename(filename) {
|