Skip to content

Commit

Permalink
removed < again and tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
hrshdhgd committed Aug 16, 2022
1 parent 53a8d93 commit 44c8099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kgcl_schema/grammar/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def parse_statement(input: str) -> Change:
Return an instantiated dataclass object from model.kgcl_schema.
"""
regex = r'<http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'
regex = r'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'
uri_list = re.findall(regex, input)
if uri_list:
# curie = curie_from_iri(uri[0].replace("<", "").replace(">",""))
Expand Down
2 changes: 1 addition & 1 deletion tests/cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
None
),
(
f"create node {NEW_TERM} 'foo'",
f"create node {NEW_TERM_URI} 'foo'",
# TODO: diff not working here:
#f"create node {NEW_TERM_URI} 'foo'",
TODO_TOKEN,
Expand Down

0 comments on commit 44c8099

Please sign in to comment.