fix digit bug, and add spec for a rule that triggered it