Strip quoting angle in lone IRIRef terms
This commit is contained in:
parent
7ce3a10d57
commit
410202f3e0
2 changed files with 98 additions and 95 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue