You are here

public static function Helper::apbct_key_is_correct in Anti Spam by CleanTalk 8.3

File

src/lib/Cleantalk/Common/Helper.php, line 163

Class

Helper
Cleantalk's hepler class

Namespace

Drupal\cleantalk\lib\Cleantalk\Common

Code

public static function apbct_key_is_correct($api_key = '') {
  return preg_match('/^[a-z\\d]{3,15}$|^$/', $api_key);
}