Skip to content

Commit 2095074

Browse files
committed
apply issue #1
1 parent 326c51d commit 2095074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/getLatestVersion.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,13 @@ function getLatestVersionFromUrl(url, fetchOptions) {
6565
return Promise.resolve(latestVersion);
6666
}
6767

68+
text = text.substr(indexStart + startToken.length);
69+
6870
const indexEnd = text.indexOf(endToken);
6971
if (indexEnd === -1) {
7072
return Promise.reject("Parse error.");
7173
}
7274

73-
text = text.substr(indexStart + startToken.length);
7475
text = text.substr(0, indexEnd);
7576

7677
latestVersion = text.trim();

0 commit comments

Comments
 (0)