Skip to content

Conversation

bruceharrison1984
Copy link

@bruceharrison1984 bruceharrison1984 commented Aug 19, 2025

The is a simple one line change that allows for dashes in database name, which Postgres supports. It also simplifies the regex expression to just use the \w operator, since it is equivalent to the existing expression.

^[\w-]*$

^ asserts position at start of a line
\w matches any word character (equivalent to [a-zA-Z0-9_])
- matches the character - with index 4510 (2D16 or 558) literally (case sensitive)
* matches the previous token between zero and unlimited times, as many times as possible, giving back as needed (greedy)
$ asserts position at the end of a line

Would also address this old issue: #663

@zalando-robot
Copy link

Cannot start a pipeline due to:

No accountable user for this pipeline: no Zalando employee associated to this GitHub username

Click on pipeline status check Details link below for more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants