Fixed nd-doesInfixMatch()