Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Jan 21, 2024
1 parent 68c128d commit f11b328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/TapoLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class DeviceModel
public static function GetGuidByDeviceModel(string $Model): string
{
$Match = [];
if (preg_match('/^[a-zA-Z]{2}\d{3}/', $Model, $Match)) {
if (preg_match('/^[a-zA-Z]{1,2}\d{3}/', $Model, $Match)) {
if (array_key_exists($Match[0], self::$DeviceModels)) {
return self::$DeviceModels[$Match[0]];
}
Expand Down Expand Up @@ -237,7 +237,7 @@ class HubChildDevicesModel
public static function GetGuidByDeviceModel(string $Model): string
{
$Match = [];
if (preg_match('/^[a-zA-Z]{2}\d{3}/', $Model, $Match)) {
if (preg_match('/^[a-zA-Z]{1,2}\d{3}/', $Model, $Match)) {
if (array_key_exists($Match[0], self::$DeviceModels)) {
return self::$DeviceModels[$Match[0]];
}
Expand Down

0 comments on commit f11b328

Please sign in to comment.