You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
457 B
17 lines
457 B
2 years ago
|
'use strict';
|
||
|
|
||
|
var stringifyString = require('../../stringify/stringifyString.js');
|
||
|
|
||
|
const string = {
|
||
|
identify: value => typeof value === 'string',
|
||
|
default: true,
|
||
|
tag: 'tag:yaml.org,2002:str',
|
||
|
resolve: str => str,
|
||
|
stringify(item, ctx, onComment, onChompKeep) {
|
||
|
ctx = Object.assign({ actualString: true }, ctx);
|
||
|
return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
exports.string = string;
|