1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-29 19:35:19 +00:00
action-ansible-playbook/node_modules/yaml/browser/dist/schema/common/string.js

15 lines
421 B
JavaScript
Raw Normal View History

2022-10-21 14:44:44 +00:00
import { stringifyString } from '../../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(item, ctx, onComment, onChompKeep);
}
};
export { string };