Skip to content

Commit

Permalink
be more flexible with bnode extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Nov 23, 2024
1 parent e1ed93c commit 7e2dea1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/triple_common_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ pub(crate) mod triple {
pub(crate) fn labeled_bnode(s: &str) -> ParserResult<BlankNode> {
let parse_label = delimited(
tag(BLANK_NODE_LABEL),
take_while(|s: char| !s.is_whitespace() && s != '.' && s != ';' && s != '<'),
take_while(|s: char| {
!s.is_whitespace() && s != '.' && s != ';' && s != '<' && s != '(' && s != '['
}),
space0,
);

Expand Down

0 comments on commit 7e2dea1

Please sign in to comment.