| 1 | export function normalizeRangeStr(rangeStr = '') { |
| 2 | return !rangeStr.trim() ? [] : rangeStr.trim().split(/\|/g).map(i => i.trim()) |
| 3 | } |
| 4 | /** |
| 5 | * Escape `{{` in code block to prevent Vue interpret it, #99, #1316 |
| 6 | */ |
| 7 | export function escapeVueInCode(md: string) { |
| 8 | return md.replace(/\{\{/g, '{{') |
| 9 | } |
| 10 |