* The token's value with CSS escapes resolved (`\2d` → `-`, `\75 rl` → `url`), * per https://www.w3.org/TR/css-syntax-3/#consume-escaped-code-point — the * form to match keywords / export as a CSS-Modules name against. For a string * token it is the content between the quotes (the spec string
()
| 1340 | * @returns {string} the unescaped value |
| 1341 | */ |
| 1342 | get unescaped() { |
| 1343 | const v = this.value; |
| 1344 | // A string token's `value` carries its delimiting quotes; its value is the content between them. |
| 1345 | return this.type === T_STRING |
| 1346 | ? unescapeIdentifier(v.slice(1, -1)) |
| 1347 | : unescapeIdentifier(v); |
| 1348 | } |
| 1349 | |
| 1350 | /** |
| 1351 | * Parsed numeric value (number / percentage / dimension tokens). Derived from |
no test coverage detected