Files
NapCatQQ/.pnpm-store/v3/files/cc/85d58c3c16bc9dbdd214c2d57c6cd13e835f99e8b4b002d40ad5526375850429acc77f9a79acbf2a0717b6562ed8d6efaf9e289cc71563920bcff9debb112e
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

16 lines
434 B
Plaintext

import { Scalar } from '../../nodes/Scalar.js';
const nullTag = {
identify: value => value == null,
createNode: () => new Scalar(null),
default: true,
tag: 'tag:yaml.org,2002:null',
test: /^(?:~|[Nn]ull|NULL)?$/,
resolve: () => new Scalar(null),
stringify: ({ source }, ctx) => typeof source === 'string' && nullTag.test.test(source)
? source
: ctx.options.nullStr
};
export { nullTag };