MCPcopy Create free account
hub / github.com/Noumena-Network/code / parseBooleanField

Function parseBooleanField

scripts/generate_slash_command_appendix.mjs:301–303  ·  view source on GitHub ↗
(source, fieldName)

Source from the content-addressed store, hash-verified

299}
300
301function parseBooleanField(source, fieldName) {
302 return source.match(new RegExp(`${fieldName}:\\s*(true|false)`))?.[1] ?? ''
303}
304
305function parseBundledSkillMetadata(source) {
306 const firstMatch = pattern => source.match(pattern)?.[1] ?? ''

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected