Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
match: /(?:[CFSBHZ][\d.]+)+/,
value: text => {
const diameterMatch = text.match(/C[\d.]+/)
return diameterMatch ? diameterMatch[0] : ''
},
},
[Tokens.COORD_CHAR]: /[XYZIJA]/,
[Tokens.NUMBER]: /(?:[+-])?[\d.]+/,
[Tokens.WORD]: /[a-zA-Z]+/,
[Tokens.WHITESPACE]: /[ \t]+/,
[Tokens.NEWLINE]: {
match: /\r?\n/,
lineBreaks: true,
},
[Tokens.CATCHALL]: /[\S]/,
[Tokens.ERROR]: moo.error,
}