Utils.pm: IsInt for Loredo

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@5488 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2014-04-08 11:32:17 +00:00
parent 83c5462125
commit a1e8d30b8a

View File

@ -175,6 +175,11 @@ sub UntoggleIndirect($$$)
return;
}
sub
IsInt($)
{
defined $_[0] && $_[0] =~ /^[+-]?\d+$/;
}
1;