import { buildRegexForKeyMatch } from './build-regex-for-key-match' ; export function keyMatchesSchema ( pattern , key , interpolations ) { const { exp : keySchemaExp } = buildRegexForKeyMatch ( pattern , interpolations ) ; const values = keySchemaExp . exec ( key ) ; return ! ! values ; }