git.iko.soy/typeable/nixpkgs
on master help sign in
Improve name quoting to correctly handle underscore
commit6465d684b81d75ed42a5cdb4e50b3108e73ac031 authorMichael Raskin <7c6f434c@mail.ru> dateSun 12 Oct 2014, 19:08 (12 years ago) parent525a850
1 file changed+2−2
maintainers/scripts/vanity.sh+2−2
maintainers/scripts/vanity.sh+2−2
@@ -17,11 +17,11 @@ git_lines="$( ( echo "$git_data";
1717
1818# For RDF
1919normalize_name () {
20− sed -e 's/ /_/g; s/'\''/*/g; s/"/**/g;'
20+ sed -e 's/%/%25/g; s/ /%20/g; s/'\''/%27/g; s/"/%22/g;'
2121}
2222
2323denormalize_name () {
24− sed -e 's/_/ /g; s/[*][*]/"/g; s/[*]/'\''/g;'
24+ sed -e 's/%20/ /g; s/%27/'\''/g; s/%22/"/g; s/%25/%/g;';
2525}
2626
2727n3="$(mktemp --suffix .n3)"