UNPKG

micromark

Version:

small commonmark compliant markdown parser with positional info and concrete tokens

14 lines (9 loc) 222 B
'use strict' var fromCharCode = require('../constant/from-char-code.js') function regexCheck(regex) { return check function check(code) { return regex.test(fromCharCode(code)) } } module.exports = regexCheck