mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-24 23:56:51 +00:00
Fix #84 Parse floats and add info for chance list
This commit is contained in:
@@ -372,6 +372,7 @@ function updateField(el) {
|
||||
for (let i = 0; i < value.length; i += 1) {
|
||||
value[i] = value[i].trim();
|
||||
if (type === 'chance-list') {
|
||||
value[i] = parseFloat(value[i]);
|
||||
if (isNaN(value[i])) {
|
||||
value = [];
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user