Commit 1e705f07 authored by 神楽坂玲奈's avatar 神楽坂玲奈

platform

parent fbf2d4a2
......@@ -8,7 +8,7 @@ $(document).ready ->
#version
$.get '/mycard/download.url', (data)->
if matched = data.match(/mycard-(.*)-(.*)\.(.*)/)
if matched = data.match(/mycard-(.*?)-(.*)\.(.*)/)
$('#download_version').html matched[1]
else
$('#download_version').html '读取失败'
......
......@@ -9,7 +9,7 @@
});
$.get('/mycard/download.url', function(data) {
var matched;
if (matched = data.match(/mycard-(.*)-(.*)\.(.*)/)) {
if (matched = data.match(/mycard-(.*?)-(.*)\.(.*)/)) {
return $('#download_version').html(matched[1]);
} 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