diff options
Diffstat (limited to '')
-rw-r--r-- | type/Default.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/type/Default.class.php b/type/Default.class.php index ce47cf3..909ac32 100644 --- a/type/Default.class.php +++ b/type/Default.class.php | |||
@@ -159,7 +159,7 @@ class Type_Default { | |||
159 | $this->args['type'], | 159 | $this->args['type'], |
160 | strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance'] | 160 | strlen($this->args['tinstance']) ? '-' : '', $this->args['tinstance'] |
161 | ); | 161 | ); |
162 | $identifier = str_replace(array('[', ']'), array('\[', '\]'), $identifier); | 162 | $identifier = preg_replace("/([*?[])/", '[$1]', $identifier); |
163 | 163 | ||
164 | $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*'; | 164 | $wildcard = strlen($this->args['tinstance']) ? '.' : '[-.]*'; |
165 | 165 | ||