mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-11 06:04:55 +08:00
DISABLE_THIRD_PARTY_CHECK=NPM update R=jacktfranklin@chromium.org Bug: none Change-Id: I41b7006f336b9465677cc7434abd70a732c58221 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2692907 Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
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
|