diff --git a/app/assets/js/scripts/settings.js b/app/assets/js/scripts/settings.js index d673cf4..e86de97 100644 --- a/app/assets/js/scripts/settings.js +++ b/app/assets/js/scripts/settings.js @@ -180,7 +180,11 @@ function saveSettingsValues(){ if(v.type === 'number' || v.type === 'text'){ // Special Conditions if(cVal === 'JVMOptions'){ - sFn(v.value.split(' ')) + if(!v.value.trim()) { + sFn([]) + } else { + sFn(v.value.trim().split(/\s+/)) + } } else { sFn(v.value) }