Skip to content

Commit

Permalink
Merge branch 'merge' into bricks
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed May 13, 2024
2 parents ddce288 + 8df376b commit 6b85de5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const fetchBinary = IS_REACT_NATIVE ? fetchBinaryImpl : fetch;
* @param {string[]} [validHosts=null] A list of valid hostnames. If specified, the URL's hostname must be in this list.
* @returns {boolean} True if the string is a valid URL, false otherwise.
*/
function isValidUrl(string, protocols = null, validHosts = null) {\
function isValidUrl(string, protocols = null, validHosts = null) {
if (IS_REACT_NATIVE) {
if (protocols && !protocols.some((protocol) => string.startsWith(protocol)))
return false;
Expand Down

0 comments on commit 6b85de5

Please sign in to comment.