[samsung-mobile] Add automation (#437)

Detect new models and aggregate EOL data for Samsung Mobile devices.

This script works cumulatively: when a model is not listed anymore on https://security.samsungmobile.com/workScope.smsb
it retains the date and use it as the model's EOL date.
This commit is contained in:
Marc Wrobel
2025-05-03 14:25:41 +02:00
parent 97790695ee
commit 6091ef55fe
6 changed files with 1883 additions and 6 deletions

View File

@@ -143,9 +143,7 @@ class Field:
return f"{items[0]} - {items[-1]}" if len(items) > 1 else str_value
elif self.type == "identifier":
normalized_value = str_value.strip().lower()
normalized_value = normalized_value.replace(" ", "-")
return re.sub(r"[^a-z0-9.\-+_]", "", normalized_value)
return endoflife.to_identifier(str_value)
return str_value