mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-24 11:09:34 +00:00
Fix copy&paste error
This commit is contained in:
parent
0673501ecc
commit
21e7da312c
1 changed files with 1 additions and 1 deletions
|
|
@ -286,7 +286,7 @@ class LCSCProvider implements InfoProviderInterface
|
||||||
}
|
}
|
||||||
//If it's a plus/minus value, we'll also it like a range
|
//If it's a plus/minus value, we'll also it like a range
|
||||||
} elseif (str_starts_with($attribute['paramValueEn'], '±')) {
|
} elseif (str_starts_with($attribute['paramValueEn'], '±')) {
|
||||||
[$number, $unit] = ParameterDTO::splitIntoValueAndUnit(ltrim($parts[0], " ±")) ?? [$attribute['paramValueEn'], null];
|
[$number, $unit] = ParameterDTO::splitIntoValueAndUnit(ltrim($attribute['paramValueEn'], " ±")) ?? [$attribute['paramValueEn'], null];
|
||||||
if (is_numeric($number)) {
|
if (is_numeric($number)) {
|
||||||
$result[] = new ParameterDTO(name: $attribute['paramNameEn'], value_min: (float) $number, value_max: (float) $number, unit: $unit, group: null);
|
$result[] = new ParameterDTO(name: $attribute['paramNameEn'], value_min: (float) $number, value_max: (float) $number, unit: $unit, group: null);
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue