All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
13 lines
221 B
JavaScript
13 lines
221 B
JavaScript
'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
|