Commit 9a3d076a authored by 神楽坂玲奈's avatar 神楽坂玲奈

platform

parent b1a22f2a
......@@ -8,8 +8,8 @@ $(document).ready ->
#version
$.get '/mycard/download.url', (data)->
if matched = data.match(/mycard-(.*)-win32\.7z/)
$('#download_version').html matched[1]
if matched = data.match(/mycard-(.*)-(.*)\.7z/)
$('#download_version').html "#{matched[1]} #{matched[2]}"
else
$('#download_version').html '读取失败'
......
......@@ -9,8 +9,8 @@
});
$.get('/mycard/download.url', function(data) {
var matched;
if (matched = data.match(/mycard-(.*)-win32\.7z/)) {
return $('#download_version').html(matched[1]);
if (matched = data.match(/mycard-(.*)-(.*)\.7z/)) {
return $('#download_version').html("" + matched[1] + " " + matched[2]);
} else {
return $('#download_version').html('读取失败');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment