UNPKG

yarle-evernote-to-md

Version:

Yet Another Rope Ladder from Evernote

11 lines (9 loc) 268 B
import * as M from '../match-all'; export const removePlaceholder = (text: string, P: any): string => { return text.replace( new RegExp(`${P.START_BLOCK}(?<=${P.START_BLOCK})(.*)(?=${P.END_BLOCK})${P.END_BLOCK}${M.MATCH_LF}`, 'g', ), '', ); };