Skip to content

Commit 573c288

Browse files
committed
adds index creation
1 parent 0b36c78 commit 573c288

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/SynchronizationApiSdk.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,6 @@ private function validateIndexName(string $index): void
133133
if (empty(trim($index))) {
134134
throw new ValidationException('Index name cannot be empty');
135135
}
136-
137-
// Index name validation (similar to database naming conventions)
138-
if (!preg_match('/^[a-z0-9][a-z0-9_-]*[a-z0-9]$|^[a-z0-9]$/', $index)) {
139-
throw new ValidationException(
140-
'Index name must start and end with alphanumeric characters and can contain only lowercase letters, numbers, hyphens, and underscores'
141-
);
142-
}
143136
}
144137

145138
/**

0 commit comments

Comments
 (0)