Strip quoting angle in lone IRIRef terms

This commit is contained in:
kortschak 2014-07-29 08:33:35 +09:30
parent 7ce3a10d57
commit 410202f3e0
2 changed files with 98 additions and 95 deletions

View file

@ -85,6 +85,9 @@ func unEscape(r []rune, isQuoted, isEscaped bool) string {
if isQuoted {
r = r[1 : len(r)-1]
}
if len(r) >= 2 && r[0] == '<' && r[len(r)-1] == '>' {
return string(r[1 : len(r)-1])
}
if !isEscaped {
return string(r)
}