normalizeTableName method

  1. @protected
String normalizeTableName(
  1. String table
)
inherited

Normalizes table into a safe directory/prefix name (non-word characters replaced by _).

Implementation

@protected
String normalizeTableName(String table) {
  table = table.trim().replaceAll(_regExpNormalizeTableNonWord, '_');
  if (table.isEmpty) {
    throw StateError("Empty table name.");
  }
  return table;
}