@ -163,10 +163,10 @@ export default {
},
NumRange: {
min: (parent: string) => {
return parent.split(',')[0].replace('[', '');
return parent.replace(/^\[(.*),.*]$/, '$1');
max: (parent: string) => {
return parent.split(',')[1].replace(']', '');
return parent.replace(/^\[.*,(.*)]$/, '$1');
}
Equipment: {
@ -106,11 +106,10 @@ export default {
DateRange: {
from (parent: string) {
return parent.replace(/^\[(.*),.*\)$/, '$1');
to (parent: string) {
const str = parent.split(',')[1].replace(')', '');
return parent.replace(/^\[.*,(.*)\)$/, '$1');
return (str.length > 0) ? str : null;
TimeFrame: {