Comments (2)
Library name is currently checked to be 3 characters Data.doCheck()
The checks for username (3 chars, alphanumeric) are in Repo.register()
Tags are currently only tested in Data.doCheck()
, and the only test is
that they are a string.
I agree with adding the extra restrictions, as documented.
The length checking for each happens separately at the moment, so I don't
mind tags being 2 characters and project names / user names being more. I
also don't mind standardizing it. Pretty indifferent really.
As for extra characters, maybe I'm a punk english-only speaker that rarely
needs anything outside [a-z0-9_.-], but my leaning is towards "no". The
names have to be used in URLs, in Haxe code (#if mylib) and in hxml files /
command line params, as well as by haxelib itself. I think there's a lot
of room for things to go wrong, for parsers to be unhappy, or for things to
get hard to type.
Jason
On Fri, Jun 14, 2013 at 10:02 AM, Zachary Dremann
[email protected]:
According to the haxe documentationhttp://haxe.org/doc/haxelib/using_haxelib#creating-a-haxelib-package,
We place some restrictions on the name/user, specifically:
- Length must be >= 3
- All characters must be one of [A-Za-z0-9_-.]
I could find no such restrictions on tags, on the site, or in the haxelib
code (but I definitely could have missed it). I think we should place
similar restrictions on tags as we place on user names and project names.
We need to decide: What restrictions should we place on tag names?I think we should use the same character restrictions everywhere. Easier
for us, and easier for users, and I don't think it's too restrictive. Tags
need to be at least down to 2 characters long, to support current tags like
'js' and 'cs'.
Do we want to change any of the rules for projects/user names?
- We could allow more characters (accents, other symbols. e.g. A*pathor C--
proj).- We could change the minimum length to two. This allows for the same
verification for tags, projects, and user names.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/61
.
from haxelib.
Okay, I'm saying we go with
Tag Name
[A-Za-z0-9_.-]{2,}
User Name
[A-Za-z0-9_.-]{3,}
Project Name
[A-Za-z0-9_.-]{3,}
Exactly the same as we had, except for tags, which now get some restrictions beyond being a string.
from haxelib.
Related Issues (20)
- I want to remove my library, but i don't find the right command HOT 2
- Better handling of run script ndll paths
- Lose hx3compat dependency HOT 2
- lib.haxe.org is down HOT 1
- Define lib.name HOT 10
- Support SPDX license identifiers HOT 3
- Request to remove library from lib.haxe.org HOT 6
- haxelib install hxcpp failed with error: Blocking HOT 2
- Request to delete library HOT 2
- `haxelib` throws an exception when installing any library
- Error: Failed with error: Http Error #502 when submitting .zip file HOT 1
- Run haxelib main relative to classpath
- SQL query leak
- Misleading instructions HOT 1
- Local repositories break with libraries which use native C++ files HOT 6
- change password request HOT 3
- Migrate away from mysql 5.7 HOT 2
- std@sys_remove_dir when trying to install git library with specific branch HOT 2
- I want to rename a lib HOT 2
- Dont spam the terminal on download HOT 1
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 haxelib.