Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Joshua Avalon joshuaavalon

🎯
Focusing
View GitHub Profile
@joshuaavalon
joshuaavalon / semver.sh
Created Jan 13, 2021
Parse semantic version
View semver.sh
#!/usr/bin/env sh
function semverParseInto() {
local RE='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)';
eval $2=`echo $1 | sed -e "s#$RE#\1#"`;
eval $3=`echo $1 | sed -e "s#$RE#\2#"`;
eval $4=`echo $1 | sed -e "s#$RE#\3#"`;
eval $5=`echo $1 | sed -e "s#$RE#\4#"`;
}
View Atom Beautify Debugging information
# Atom Beautify - Debugging information
The following debugging information was generated by `Atom Beautify` on `Wed Jan 04 2017 11:25:25 GMT+0800 (China Standard Time)`.
---
## Table Of Contents
- [Versions](#versions)
- [Original file to be beautified](#original-file-to-be-beautified)
- [Original File Contents](#original-file-contents)