ui: Allow digit for IPv4 and IPv6 netmasks

Change-Id: I48bf6c9cc2fe41c3358bdc11962a7eaaa4200652
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=981168
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>