UNPKG
@beauraines/rtm-cli
Version:
latest (1.14.7)
1.14.7
1.14.6
1.14.5
1.14.4
1.14.3
1.14.2
1.14.1
1.14.0
1.13.2
1.13.1
1.13.0
1.12.0
1.11.0
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.14
1.8.13
1.8.12
1.8.11
1.8.10
1.8.9
1.8.8
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.2
1.7.1
1.7.0
1.6.1
1.6.0
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
RTM CLI
github.com/beauraines/rtm-cli
beauraines/rtm-cli
@beauraines/rtm-cli
/
src
/
utils
/
sanitizeTag.js
15 lines
(10 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'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;