Skip to content

Commit c1b30b7

Browse files
author
Ivan Gavryshko
committed
MAGETWO-31904: There is no validation for 'Table prefix' on Step 2: Add a Database during instalation...
- removed unnesessary statement.
1 parent c0e5bd8 commit c1b30b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ public function checkDatabaseTablePrefix($prefix)
768768
{
769769
//The table prefix should contain only letters (a-z), numbers (0-9) or underscores (_);
770770
// the first character should be a letter.
771-
if ($prefix !== '' && !preg_match('/^([a-zA-Z])([[:alnum:]]+)([[:alnum:]_]+)$/', $prefix)) {
771+
if ($prefix !== '' && !preg_match('/^([a-zA-Z])([[:alnum:]_]+)$/', $prefix)) {
772772
throw new \InvalidArgumentException('Please correct the table prefix format.');
773773
}
774774

0 commit comments

Comments
 (0)