* Match `re` and return captures. * * @param {RegExp} re * @return {undefined|Array}
(re)
| 140 | * @return {undefined|Array} |
| 141 | */ |
| 142 | function match(re) { |
| 143 | const m = re.exec(style); |
| 144 | if (!m) return; |
| 145 | const str = m[0]; |
| 146 | updatePosition(str); |
| 147 | style = style.slice(str.length); |
| 148 | return m; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Parse whitespace. |
no test coverage detected