Skip to content

Commit

Permalink
Fix regex for bucket names to allow underscore (#1020)
Browse files Browse the repository at this point in the history
* Fix regex for bucketnames to allow underscore

* Update GCPStorageLocationValidator.scala

Handle dots

Signed-off-by: Andrew Stevenson <10235749+andrewstevenson@users.noreply.github.com>

* Update GCPStorageLocationValidator.scala

Handle escape chars

Signed-off-by: Andrew Stevenson <10235749+andrewstevenson@users.noreply.github.com>

---------

Signed-off-by: Andrew Stevenson <10235749+andrewstevenson@users.noreply.github.com>
  • Loading branch information
andrewstevenson committed Jan 3, 2024
1 parent 054eb47 commit 66bfd59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import io.lenses.streamreactor.connect.cloud.common.model.location.CloudLocation
import io.lenses.streamreactor.connect.cloud.common.model.location.CloudLocationValidator

object GCPStorageLocationValidator extends CloudLocationValidator {
private val ContainerNamePattern = "^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$".r
private val ContainerNamePattern = "^[a-z0-9][a-z0-9-\\_\\.]{1,61}[a-z0-9]$".r

def validate(location: CloudLocation): Validated[Throwable, CloudLocation] =
Validated.fromEither(
Expand Down

0 comments on commit 66bfd59

Please sign in to comment.