Comments (7)
Hey @jose-sky ,
Thanks for raising this :)
I'd be a little concerned with starting/ending with dash/underscore - how would this sound?
^[0-9A-Za-z][0-9a-zA-Z-_]*[0-9A-Za-z]$
So at least 2 characters of: any alpha-numeric character at beginning and end, with dashes/underscores allowed in the characters in-between?
Many thanks
Matt
from terrareg.
Okay I can see why it is, the regexp only allow a minimum of 3 characters. Same is happening for the creation of a namespace call db
if not re.match(r'^[0-9a-zA-Z][0-9a-zA-Z-_]+[0-9A-Za-z]$', name):
perhaps it would be acceptable to change it to:
if not re.match(r'^[0-9a-zA-Z-_]+[0-9A-Za-z]$', name):
from terrareg.
Actually if you don't want to allow the first character to be _ or - then it will be the opposite
if not re.match(r'^[0-9A-Za-z][0-9a-zA-Z-_]+$', name):
from terrareg.
Hey @jose-sky
Assuming you're happy with this suggestion, I've made an upstream ticket (https://gitlab.dockstudios.co.uk/pub/terrareg/-/issues/397) and a PR with the fix (https://gitlab.dockstudios.co.uk/pub/terrareg/-/merge_requests/332).
Let me know if you're happy/have any concerns with this implementation and I'll merge once you've confirmed :)
Many thanks
Matt
from terrareg.
This sounds great and cover all our use case for now 👍 Thanks
from terrareg.
Excellent - I'll merge the PR :) Apologies, I heard about the mail delivery issues - hopefully they should be sorted now :)
from terrareg.
That's now merged and released in v2.69.0 :)
from terrareg.
Related Issues (20)
- Feature Request: Allow for Simplified Version Tagging HOT 10
- GitHub Webhook Validation issues HOT 14
- Enforce authentication to be able to use Terrareg HOT 5
- Provide method to specify Terraform version per module HOT 1
- Incorrect module/version data is inserted for submodules/examples HOT 1
- Provide ability to hide infracost values if resources are skipped HOT 1
- about configure ssl key HOT 11
- dowload module fail HOT 6
- OIDC Login error: (insecure_transport) OAuth 2 MUST utilize https. HOT 14
- Feature Request: terraform provider HOT 11
- Feature Request: s3 as storage and serverless DB HOT 10
- Upgrading to v3 - failed migrations HOT 8
- Feature req: Specify modules / namespaces as code HOT 3
- How does PROVIDER_SOURCES differ from GIT_PROVIDER_CONFIG HOT 3
- Optional module provider_name HOT 8
- Bug: Namespaces incorrectly showing as empty HOT 3
- Best practices for git repository containing multiple modules HOT 7
- Feature Request: Update Module Version Archive to Include Only Specified Path Contents HOT 13
- Use tenv instead of tfswitch
- Migrate to tenv from tfswitch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terrareg.