Skip to content

Commit 1aa0193

Browse files
Update URL.js
1 parent 0198eee commit 1aa0193

File tree

1 file changed

+1
-1
lines changed
  • packages/react-native/Libraries/Blob

1 file changed

+1
-1
lines changed

packages/react-native/Libraries/Blob/URL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class URL {
109109
}
110110

111111
get hash(): string {
112-
const hashMatch = this._url.match(/#(.*)$/);
112+
const hashMatch = this._url.match(/#([^/]*)/);
113113
return hashMatch ? `#${hashMatch[1]}` : '';
114114
}
115115

0 commit comments

Comments
 (0)