UNPKG

@github/markdownlint-github

Version:

An opinionated collection of markdownlint rules used by GitHub.

9 lines (8 loc) 224 B
/* Downcase and strip extra whitespaces and punctuation */ export function stripAndDowncaseText(text) { return text .toLowerCase() .replace(/[.,/#!$%^&*;:{}=\-_`~()]/g, "") .replace(/\s+/g, " ") .trim(); }