Browse Source

Improve name quoting to correctly handle underscore

nixos-19.03
Michael Raskin 8 years ago
parent
commit
6465d684b8
  1. 4
      maintainers/scripts/vanity.sh

4
maintainers/scripts/vanity.sh

@ -17,11 +17,11 @@ git_lines="$( ( echo "$git_data";
# For RDF
normalize_name () {
sed -e 's/ /_/g; s/'\''/*/g; s/"/**/g;'
sed -e 's/%/%25/g; s/ /%20/g; s/'\''/%27/g; s/"/%22/g;'
}
denormalize_name () {
sed -e 's/_/ /g; s/[*][*]/"/g; s/[*]/'\''/g;'
sed -e 's/%20/ /g; s/%27/'\''/g; s/%22/"/g; s/%25/%/g;';
}
n3="$(mktemp --suffix .n3)"

Loading…
Cancel
Save