summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e644cdd)
raw | patch | inline | side by side (parent: e644cdd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 May 2010 09:42:11 +0000 (09:42 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 May 2010 09:42:11 +0000 (09:42 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18527 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/utils/class_tests.inc | patch | blob | history |
index 2e5eab2f7f355aaf9f4beeb842200df1309899c3..e1f87a0d47ec402ec9ac52c91671935839a18618 100644 (file)
return (TRUE);
}
- return preg_match ("/^[\/0-9 ()+*-]+$/", $nr);
+ // We require at least one numeric character in the number string.
+ return preg_match ("/^[\/0-9 ()+*-]*[0-9]{1}[\/0-9 ()+*-]*$/", $nr);
}