📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-02 04:50:41
📂
/ (Root)
/
home
/
orkouolp
/
web
/
testing.orkobd
/
laravel
/
node_modules
/
yaml
/
dist
/
schema
/
core
📍 /home/orkouolp/web/testing.orkobd/laravel/node_modules/yaml/dist/schema/core
🔄 Refresh
✏️
Editing: bool.js
Writable
'use strict'; var Scalar = require('../../nodes/Scalar.js'); const boolTag = { identify: value => typeof value === 'boolean', default: true, tag: 'tag:yaml.org,2002:bool', test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/, resolve: str => new Scalar.Scalar(str[0] === 't' || str[0] === 'T'), stringify({ source, value }, ctx) { if (source && boolTag.test.test(source)) { const sv = source[0] === 't' || source[0] === 'T'; if (value === sv) return source; } return value ? ctx.options.trueStr : ctx.options.falseStr; } }; exports.boolTag = boolTag;
💾 Save Changes
❌ Cancel