Add unit tests for some legacy tests, too

This commit is contained in:
Kijin Sung 2016-03-16 11:36:36 +09:00
parent f9ea115c19
commit d325ef99bc
3 changed files with 236 additions and 3 deletions

View file

@ -421,7 +421,7 @@ function getCurrentPageUrl($escape = true)
*/
function isSiteID($domain)
{
return preg_match('/^([a-zA-Z0-9\_]+)$/', $domain);
return (bool)preg_match('/^([a-zA-Z0-9\_]+)$/', $domain);
}
/**