1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Files
docs/lib/encode-bracketed-parentheses.js
2021-01-05 17:04:01 +00:00

7 lines
240 B
JavaScript

// prevent `[foo] (bar)` strings with a space between from being interpreted as markdown links
// by encoding the space character
module.exports = function encodeBracketedParentheses (input) {
return input.replace(/] \(/g, '] (')
}