aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application/Include
diff options
context:
space:
mode:
authorAntonio Gallo <tonicucoz@gmail.com>2011-10-18 17:38:01 +0000
committerAntonio Gallo <tonicucoz@gmail.com>2011-10-18 17:38:01 +0000
commitba62152bfdad584c231dc3e941cd1974dd5d881c (patch)
treefb7f137c846a4533d4f094f11c64e4499696937d /h-source/Application/Include
parent7d294873ca1b9705652592523210f543e73ec1e1 (diff)
more characters are now allowed for the kernel entry
Diffstat (limited to 'h-source/Application/Include')
-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)