UNPKG

@beauraines/rtm-cli

Version:
15 lines (10 loc) 252 B
'use strict'; // This is used for the Obsidian reformatting function sanitizeTag(tag) { if (typeof tag !== 'string') return tag; if (tag.startsWith('@')) { return `context/${tag.slice(1)}`; } return tag; } module.exports = sanitizeTag;