diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-07-13 14:25:30 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-07-13 14:25:30 +0200 |
commit | 4de7c4cd72951b7c623debf8d363358768861432 (patch) | |
tree | e706bb623331bac87a392b6d0c2ccb9c507d04b4 /foaf | |
parent | f9ed83c87ba60e04d6dbe504f60bb9feb7add7bc (diff) |
Fix catch lone & in linkedin2foaf().
Diffstat (limited to 'foaf')
-rwxr-xr-x | foaf/mkfoaf.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/foaf/mkfoaf.sh b/foaf/mkfoaf.sh index 41aabe7..7423e5b 100755 --- a/foaf/mkfoaf.sh +++ b/foaf/mkfoaf.sh @@ -45,7 +45,7 @@ linkedin2foaf() { # work around unescaped &'s in linkedin pages # xsltproc --html "$bindir/linkedin2foaf.xsl" "http://www.linkedin.com/in/$id" > "$outpath" wget -q -O "$tmppath" "http://www.linkedin.com/in/$id" - perl -i -pe 's/&([a-zA-Z0-9]+=)/&$1/g' "$tmppath" + perl -i -pe 's/&([a-zA-Z0-9]+=|\s)/&$1/g' "$tmppath" xsltproc --html "$xsltdir/linkedin2foaf.xsl" "$tmppath" > "$outpath" rm -f "$tmppath" foafsign "$outpath" |