diff options
Diffstat (limited to 'node_modules/yaml/dist/schema/common/null.js')
| -rw-r--r-- | node_modules/yaml/dist/schema/common/null.js | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/node_modules/yaml/dist/schema/common/null.js b/node_modules/yaml/dist/schema/common/null.js deleted file mode 100644 index cb353a7a..00000000 --- a/node_modules/yaml/dist/schema/common/null.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var Scalar = require('../../nodes/Scalar.js'); - -const nullTag = { - identify: value => value == null, - createNode: () => new Scalar.Scalar(null), - default: true, - tag: 'tag:yaml.org,2002:null', - test: /^(?:~|[Nn]ull|NULL)?$/, - resolve: () => new Scalar.Scalar(null), - stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source) - ? source - : ctx.options.nullStr -}; - -exports.nullTag = nullTag; |
