We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e21a736 commit e577c07Copy full SHA for e577c07
1 file changed
src/uris.rs
@@ -147,7 +147,7 @@ impl PrefixMap {
147
if let Some(prefix) = key.as_deref() {
148
prefix_map
149
.0
150
- .add_prefix(prefix, &value)
+ .add_prefix(prefix, &value[1..&value.len()-1])
151
.map_err(PrefixError::from)?
152
} else {
153
prefix_map.0.set_default(&value)
@@ -169,7 +169,7 @@ impl PrefixMap {
169
Err(ExpansionError::MissingDefault) => {
170
Err(PrefixError::MissingDefault(curie.to_string()))
171
}
172
- Ok(s) => Ok(Uri::FullUri(format!("<{}>", s))),
+ Ok(s) => Ok(Uri::FullUri(s)),
173
174
175
0 commit comments