Skip to content

Commit 4ddc932

Browse files
committed
Line ends should not matter in version parsing...
1 parent 4970541 commit 4ddc932

File tree

2 files changed

+4
-4
lines changed
  • Distros/HaxeDevelop/FlashDevelop/Bin/Debug/StartPage/javascript
  • FlashDevelop/Bin/Debug/StartPage/javascript

2 files changed

+4
-4
lines changed

Distros/HaxeDevelop/FlashDevelop/Bin/Debug/StartPage/javascript/startpage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function handleVersionInfo(text, status)
113113
var html = "";
114114
if (status == 200)
115115
{
116-
var info = text.split("\r\n");
116+
var info = text.split(/[\r\n]+/g);
117117
var version = decodeURIComponent(getUrlParameter("v"));
118118
html = formatString(versionAvailableTemplate, info[0], info[1]);
119119
if (version && ((info[0] < version) - (version < info[0])) == -1)

FlashDevelop/Bin/Debug/StartPage/javascript/startpage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function handleVersionInfo(text, status)
109109
var html = "";
110110
if (status == 200)
111111
{
112-
var info = text.split("\r\n");
112+
var info = text.split(/[\r\n]+/g);
113113
var version = decodeURIComponent(getUrlParameter("v"));
114114
html = formatString(versionAvailableTemplate, info[0], info[1]);
115115
if (version && ((info[0] < version) - (version < info[0])) == -1)
@@ -207,8 +207,8 @@ function handleXmlData(projectXml, rssUrl)
207207
{
208208
if (rssUrl != null)
209209
{
210-
var fd3Url = "http://www.flashdevelop.org/latest.txt";
211-
loadTextDocument(fd3Url, handleVersionInfo);
210+
var fdUrl = "http://www.flashdevelop.org/latest.txt";
211+
loadTextDocument(fdUrl, handleVersionInfo);
212212
loadTextDocument(rssUrl, handleRssFeedXml);
213213
}
214214
var xml = parseXmlDocument(projectXml);

0 commit comments

Comments
 (0)