See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
function hexNumRefToString(hexNumRef) { | |
return hexNumRef.replace(/&#x([0-9a-f]+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode('0x' + $1); | |
}); | |
} | |
function decNumRefToString(decNumRef) { | |
return decNumRef.replace(/&#(\d+);/ig, function(match, $1, idx, all) { | |
return String.fromCharCode($1); | |
}); | |
} |
/* | |
href | |
┌────────────────────────────────────────┴──────────────────────────────────────────────┐ | |
origin │ | |
┌────────────┴──────────────┐ │ | |
│ authority │ | |
│ ┌───────────────┴───────────────────────────┐ │ | |
│ │ host resource | |
│ │ ┌──────────┴─────────────────┐ ┌────────────┴───────────┬───────┐ | |
│ │ hostname │ pathname │ │ |