Closed muescha closed 4 years ago
when i have a string other than twitter or github
twitter
github
.use(require("retext-syntax-mentions"), { style: 'twittter'})
TypeError: style.test is not a function
the code did not check after init if it is an RegEx
Should print a error that an RegEx is required
n/a
Ah good catch, there indeed is no error for incorrect configuration. Interested in creating a PR?
Released!
Subject of the feature
when i have a string other than
twitter
orgithub
Problem
the code did not check after init if it is an RegEx
Expected behavior
Should print a error that an RegEx is required
Alternatives
n/a