node/tools/eslint/node_modules/micromark/lib/util/regex-check.mjs
Michaël Zasso 2eff28fb7a
tools: move ESLint to tools/eslint
Greatly simplify how ESLint and its plugins are installed.

PR-URL: https://github.com/nodejs/node/pull/53413
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-06-19 19:54:08 +00:00

11 lines
203 B
JavaScript

export default regexCheck
import fromCharCode from '../constant/from-char-code.mjs'
function regexCheck(regex) {
return check
function check(code) {
return regex.test(fromCharCode(code))
}
}