IntegerPattern fix so it accepts negative integers too.

Important in the factorial exercise so the correct error message is
printed.