main
Last change
on this file since 65b6638 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 |
|
---|
3 | var stringifyString = require('../../stringify/stringifyString.js');
|
---|
4 |
|
---|
5 | const 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 |
|
---|
16 | exports.string = string;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.