aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include/hardware.php
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application/Include/hardware.php')
-rw-r--r--h-source/Application/Include/hardware.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/h-source/Application/Include/hardware.php b/h-source/Application/Include/hardware.php
index 8248316..8caff1a 100644
--- a/h-source/Application/Include/hardware.php
+++ b/h-source/Application/Include/hardware.php
@@ -30,7 +30,14 @@ class Hardware
{
public static $translations = array(
- "amd64" => 'x86-64/amd64',
+ "amd64" => 'x86-64/amd64',
+ );
+
+ public static $regExpressions = array(
+ "kernel" => "/^[a-zA-Z0-9\-\_\.\+\s\(\)\,]+$/",
+ "driver" => "/^[a-zA-Z0-9\-\_\.\+\s\/\,\:\;\(\)\[\]]+$/",
+ "vendorid_productid" => "/^[a-zA-Z0-9]{4}(\:)[a-zA-Z0-9]{4}$/",
+ "model" => "/^[a-zA-Z0-9\-\_\.\+\s\(\)\@\[\]\/]+$/",
);
public static function translate($string)