Last change
on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
465 bytes
|
Line | |
---|
1 | var utils = require('../utils')
|
---|
2 | , nodes = require('../nodes');
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Unquote the given `string`.
|
---|
6 | *
|
---|
7 | * Examples:
|
---|
8 | *
|
---|
9 | * unquote("sans-serif")
|
---|
10 | * // => sans-serif
|
---|
11 | *
|
---|
12 | * unquote(sans-serif)
|
---|
13 | * // => sans-serif
|
---|
14 | *
|
---|
15 | * @param {String|Ident} string
|
---|
16 | * @return {Literal}
|
---|
17 | * @api public
|
---|
18 | */
|
---|
19 |
|
---|
20 | function unquote(string){
|
---|
21 | utils.assertString(string, 'string');
|
---|
22 | return new nodes.Literal(string.string);
|
---|
23 | }
|
---|
24 | unquote.params = ['string'];
|
---|
25 | module.exports = unquote;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.