function isCommandBelongsToRule(ruleCommands, command) {
	const regExp = getRuleRegExp(command);
	return castArray(ruleCommands).some(x => regExp.test(x));
}
Check if a given command belongs to a rule

@param {string | string[]} ruleCommands
@param {string} command