Utils.pm: IsInt for Loredo
git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@5488 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -175,6 +175,11 @@ sub UntoggleIndirect($$$)
|
||||
return;
|
||||
}
|
||||
|
||||
sub
|
||||
IsInt($)
|
||||
{
|
||||
defined $_[0] && $_[0] =~ /^[+-]?\d+$/;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user