版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

17 righe
457 B

  1. 'use strict';
  2. var stringifyString = require('../../stringify/stringifyString.js');
  3. const string = {
  4. identify: value => typeof value === 'string',
  5. default: true,
  6. tag: 'tag:yaml.org,2002:str',
  7. resolve: str => str,
  8. stringify(item, ctx, onComment, onChompKeep) {
  9. ctx = Object.assign({ actualString: true }, ctx);
  10. return stringifyString.stringifyString(item, ctx, onComment, onChompKeep);
  11. }
  12. };
  13. exports.string = string;