We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11f99fd commit 3afb46aCopy full SHA for 3afb46a
harmony/blobUtil/src/main/ets/ReactNativeBlobUtil/ReactNativeBlobUtilReq.ts
@@ -292,7 +292,7 @@ export default class ReactNativeBlobUtilReq {
292
}
293
294
isPathStr(str: string): boolean {
295
- return !!(str.indexOf(FILE_PREFIX) || str.indexOf(CONTENT_PREFIX) || str.indexOf('/') === 0);
+ return !!(str.startsWith(FILE_PREFIX) || str.startsWith(CONTENT_PREFIX) || str.indexOf('/') === 0);
296
297
298
getABData(isPath: boolean, data: string): ArrayBuffer {
0 commit comments