Skip to content

Commit 740e029

Browse files
committed
Fixed function in resource fetcher that produced the same name for different requires in development mode
1 parent 1578d52 commit 740e029

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-executorch/src/utils/ResourceFetcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ export class ResourceFetcher {
148148

149149
private static getFilenameFromUri(uri: string) {
150150
let cleanUri = uri.replace(/^https?:\/\//, '');
151-
cleanUri = cleanUri.split('?')?.[0]?.split('#')?.[0] ?? cleanUri;
151+
cleanUri = cleanUri.split('#')?.[0] ?? cleanUri;
152152
return cleanUri.replace(/[^a-zA-Z0-9._-]/g, '_');
153153
}
154154

0 commit comments

Comments
 (0)