aboutsummaryrefslogtreecommitdiff
path: root/node_modules/yaml/dist/schema/common/string.js
blob: 760142009b836c4105325958fce482a7f7b58f18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
'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;