From 8df376bcbaedfe8e71b28f9fcb8f09bfa8ca1fec Mon Sep 17 00:00:00 2001 From: Hans Date: Mon, 13 May 2024 17:52:19 +0800 Subject: [PATCH] Fix syntax --- src/utils/hub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/hub.js b/src/utils/hub.js index df3e7616a..aaf2a4539 100644 --- a/src/utils/hub.js +++ b/src/utils/hub.js @@ -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;