Comments (5)
There is also the question of how blatantly invalid semvers are handled; e.g., "x.y.z
". IMHO all such cases should throw an exception by default and the user should have to explicitly use a &nonstrict
option if they want to be lenient. The exception being a "v" (or "V") prefix since far too many otherwise valid semantic version strings include that invalid prefix.
from elvish-modules.
I think I'm going to do some work on the module adding the official regular expression to check for validity. A &nonstrict
option would allow a [Vv]
at the beginning, but probably no more.
from elvish-modules.
I think I'm going to do some work on the module adding the official regular expression....
I think that is a good idea. Note that a leading "v" was valid in SemVer 1.0.0 but is invalid in the 2.0.0 spec. No idea why that change was made but even if it is a good idea for the SemVer spec I think a "v" prefix should be silently ignored if the string is otherwise valid. That is, always preface the official regexp with [vV]?
. Obviously that's just my opinion and opinions are like assholes: everyone has one. 😄 It is perfectly reasonable to make the default behavior strictly conforming and require a &nonstrict
option if the user wants to be lenient on this point. I've created PR elves/elvish#1348 that incidentally removes the leading "v" from the Elvish semver string.
from elvish-modules.
@krader1961 please check out #18.
from elvish-modules.
I think #18 addresses this issue, so I'm closing it. @krader1961 feel free to reopen if there's something still missing.
from elvish-modules.
Related Issues (20)
- Aliases Broken HOT 7
- `edit:insert:binding[Alt-b] = $dir:&left-word-or-prev-dir` causes error message "Exception: value should be function" regarding `$dir` HOT 1
- alias.org README should say to place `-exports- = (alias:export)` after all `alias:new` lines HOT 1
- dir.org README should contain better instructions for using the alias package
- long-running-notifications: Allow specifying commands to ignore HOT 1
- Broken examples for test.elv
- Don't insert electric pair when the cursor is next to a character HOT 1
- electric-delimiters: [binding error] index not at rune boundary HOT 1
- [dir] Error messages: option to disable / customize output HOT 3
- util:getfile no longer works correctly HOT 2
- error loading modules HOT 5
- semver module: build metadata should be ignored HOT 1
- dir module not working on elvish 0.15? HOT 1
- long-running-notifications should use the `edit:after-command` hook HOT 1
- Use `~/.config/elvish/aliases` for default alias folder
- Update for V0.17 HOT 4
- Elvish 0.19 deprecation warnings HOT 2
- Useless use of `cat`
- iterm2: Makes histlist slow in iTerm (including quickfix)
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 elvish-modules.