MCPcopy
hub / github.com/webpack/webpack / unescaped

Method unescaped

lib/css/syntax.js:1342–1348  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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

Callers 6

parseImportPreludeFunction · 0.80
processLocalAtRuleMethod · 0.80
walkSelectorListMethod · 0.80
walkExportsMethod · 0.80

Calls 1

sliceMethod · 0.80

Tested by

no test coverage detected