regexper-static/src/js/parser/javascript/repeat_spec.js

20 lines
510 B
JavaScript

export default {
setup() {
if (this.properties.min) {
this.minimum = Number(this.properties.min.textValue);
} else if (this.properties.exact) {
this.minimum = Number(this.properties.exact.textValue);
} else {
this.minimum = 0;
}
if (this.properties.max) {
this.maximum = Number(this.properties.max.textValue);
} else if (this.properties.exact) {
this.maximum = Number(this.properties.exact.textValue);
} else {
this.maximum = -1;
}
}
};