| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,7 +38,7 @@ const { | |||
| 38 | 38 | StringPrototypeIndexOf, | |
| 39 | 39 | StringPrototypeSplit, | |
| 40 | 40 | StringPrototypeStartsWith, | |
| 41 | - StringPrototypeSubstr, | ||
| 41 | + StringPrototypeSubstring, | ||
| 42 | 42 | Symbol, | |
| 43 | 43 | } = primordials; | |
| 44 | 44 | ||
@@ -363,7 +363,7 @@ function calculateServerName(options, req) { | |||
| 363 | 363 | // Leading '[', but no ']'. Need to do something... | |
| 364 | 364 | servername = hostHeader; | |
| 365 | 365 | } else { | |
| 366 | - servername = StringPrototypeSubstr(hostHeader, 1, index - 1); | ||
| 366 | + servername = StringPrototypeSubstring(hostHeader, 1, index); | ||
| 367 | 367 | } | |
| 368 | 368 | } else { | |
| 369 | 369 | servername = StringPrototypeSplit(hostHeader, ':', 1)[0]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ const { | |||
| 11 | 11 | RegExpPrototypeSymbolReplace, | |
| 12 | 12 | StringPrototypeLocaleCompare, | |
| 13 | 13 | StringPrototypeSlice, | |
| 14 | - StringPrototypeTrimLeft, | ||
| 14 | + StringPrototypeTrimStart, | ||
| 15 | 15 | StringPrototypeRepeat, | |
| 16 | 16 | SafeMap, | |
| 17 | 17 | } = primordials; | |
@@ -180,7 +180,7 @@ function format( | |||
| 180 | 180 | else | |
| 181 | 181 | text += StringPrototypeRepeat(' ', firstColumn - displayName.length); | |
| 182 | 182 | ||
| 183 | - text += StringPrototypeTrimLeft( | ||
| 183 | + text += StringPrototypeTrimStart( | ||
| 184 | 184 | indent(fold(displayHelpText, secondColumn), firstColumn)) + '\n'; | |
| 185 | 185 | } | |
| 186 | 186 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ const { | |||
| 90 | 90 | StringPrototypeSplit, | |
| 91 | 91 | StringPrototypeStartsWith, | |
| 92 | 92 | StringPrototypeTrim, | |
| 93 | - StringPrototypeTrimLeft, | ||
| 93 | + StringPrototypeTrimStart, | ||
| 94 | 94 | StringPrototypeToLocaleLowerCase, | |
| 95 | 95 | Symbol, | |
| 96 | 96 | SyntaxError, | |
@@ -1326,7 +1326,7 @@ function complete(line, callback) { | |||
| 1326 | 1326 | let completeOn, group; | |
| 1327 | 1327 | ||
| 1328 | 1328 | // Ignore right whitespace. It could change the outcome. | |
| 1329 | - line = StringPrototypeTrimLeft(line); | ||
| 1329 | + line = StringPrototypeTrimStart(line); | ||
| 1330 | 1330 | ||
| 1331 | 1331 | let filter = ''; | |
| 1332 | 1332 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments