From fc854611840301fbd34dc51bdfc0ad15b92d2581 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Wed, 30 Oct 2013 18:22:34 +0000 Subject: [PATCH] Updated class name regex to include start/end anchors. -- Provided by anonymous 35003 (robin@kingsquare.nl) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332018 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/basic.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml index 0e707d75aa..1f6c17747a 100644 --- a/language/oop5/basic.xml +++ b/language/oop5/basic.xml @@ -18,7 +18,7 @@ name starts with a letter or underscore, followed by any number of letters, numbers, or underscores. As a regular expression, it would be expressed thus: - [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*. + ^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$. A class may contain its