We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8ad88c commit 49b70c0Copy full SHA for 49b70c0
src/start/RealmInputScreen.js
@@ -43,9 +43,11 @@ type MaybeParsedInput =
43
| {| +valid: false, error: ValidationError |};
44
45
const tryParseInput = (realmInputValue: string): MaybeParsedInput => {
46
- const withScheme = /^https?:\/\//.test(realmInputValue)
47
- ? realmInputValue
48
- : `https://${realmInputValue}`;
+ const trimmedInputValue = realmInputValue.trim();
+
+ const withScheme = /^https?:\/\//.test(trimmedInputValue)
49
+ ? trimmedInputValue
50
+ : `https://${trimmedInputValue}`;
51
52
const url = tryParseUrl(withScheme);
53
0 commit comments