https://github.com/digitalbazaar/bedrock-tokenization/blob/v19.1.0/lib/tokens/index.js#L116 Note that `Math.max(NaN, anything)` will return `NaN` which is a problem.