masktoken.js 384 B

12345678910111213
  1. export default function (isGroup, isOptional, isQuantifier, isAlternator) {
  2. this.matches = [];
  3. this.openGroup = isGroup || false;
  4. this.alternatorGroup = false;
  5. this.isGroup = isGroup || false;
  6. this.isOptional = isOptional || false;
  7. this.isQuantifier = isQuantifier || false;
  8. this.isAlternator = isAlternator || false;
  9. this.quantifier = {
  10. min: 1,
  11. max: 1
  12. };
  13. }