Updated logic for exclusive-match

Signed-off-by: Marcin Wiatr <mail.wichura@gmail.com>