source: node_modules/yaml/dist/schema/common/string.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 457 bytes
Line 
1'use strict';
2
3var stringifyString = require('../../stringify/stringifyString.js');
4
5const string = {
6 identify: value => typeof value === 'string',
7 default: true,
8 tag: 'tag:yaml.org,2002:str',
9 resolve: str => str,
10 stringify(item, ctx, onComment, onChompKeep) {
11 ctx = Object.assign({ actualString: true }, ctx);
12 return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
13 }
14};
15
16exports.string = string;
Note: See TracBrowser for help on using the repository browser.