Lines Matching refs:matchesPattern
132 return $plugin->matchesPattern('^start$', 'start') === true;
137 return $plugin->matchesPattern('^start$', 'other') === false;
142 return $plugin->matchesPattern('^users:[^:]+:start$', 'users:alice:start') === true;
147 return $plugin->matchesPattern('^users:[^:]+:start$', 'users:alice:profile') === false;
152 return $plugin->matchesPattern('wiki', 'wiki:syntax') === true;
157 return $plugin->matchesPattern('^Wiki$', 'wiki') === false;
212 return $plugin->matchesPattern('path/to/file', 'path/to/file') === true;
218 return $plugin->matchesPattern('^café$', 'café') === true;
224 return $plugin->matchesPattern('file\.txt$', 'file.txt') === true;
239 return is_string($result) || $plugin->matchesPattern('', 'anything') === false;
244 return $plugin->matchesPattern('^$', '') === true;
249 return $plugin->matchesPattern('^\s+$', ' ') === true;
255 return $plugin->matchesPattern('^a+$', $longTarget) === true;
262 return $plugin->matchesPattern($pattern, 'users:john:start') === true &&
263 $plugin->matchesPattern($pattern, 'users:mary:start') === true &&
264 $plugin->matchesPattern($pattern, 'users:admin:profile') === false;
270 return $plugin->matchesPattern($pattern, 'admin:config') === true &&
271 $plugin->matchesPattern($pattern, 'admin:users:list') === true &&
272 $plugin->matchesPattern($pattern, 'public:page') === false;
278 return $plugin->matchesPattern($pattern, 'document.txt') === true &&
279 $plugin->matchesPattern($pattern, 'image.png') === false;