mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-19 09:37:43 +02:00
Fill catch
block with placeholder comment
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
parent
8a4c6ac49e
commit
6cc7655142
1 changed files with 3 additions and 1 deletions
|
@ -116,7 +116,9 @@ const SiteUrlSchema = URISchema.required().custom(function (value, helpers) {
|
||||||
warningMessage: `the url is not supposed to contain a sub-path like '${pathname}', please use the baseUrl field for sub-paths`,
|
warningMessage: `the url is not supposed to contain a sub-path like '${pathname}', please use the baseUrl field for sub-paths`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (e) {}
|
} catch (e) {
|
||||||
|
/* Do nothing with invalid URL */
|
||||||
|
}
|
||||||
return value;
|
return value;
|
||||||
}, 'siteUrlCustomValidation');
|
}, 'siteUrlCustomValidation');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue