You are here

public function IsbnToolsService::cleanup in ISBN Field 8

File

src/IsbnToolsService.php, line 46

Class

IsbnToolsService

Namespace

Drupal\isbn

Code

public function cleanup($number) {
  return preg_replace('/[^0-9a-zA-Z]/', '', $number);
}