Skip to content

Commit

Permalink
Unescape PName.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jan 10, 2024
1 parent 5f442f6 commit 989964c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
if: "matrix.ruby == '3.2'"
if: "matrix.ruby == '3.3'"
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions lib/sparql/grammar/parser11.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2330,6 +2330,8 @@ def iri(value)

def ns(prefix, suffix)
base = prefix(prefix).to_s
suffix = suffix.to_s.gsub(PN_LOCAL_ESC) {|esc| esc[1]} if
suffix.to_s.match?(PN_LOCAL_ESC)
suffix = suffix.to_s.sub(/^\#/, "") if base.index("#")
debug {"ns(#{prefix.inspect}): base: '#{base}', suffix: '#{suffix}'"}
iri(base + suffix.to_s)
Expand Down

0 comments on commit 989964c

Please sign in to comment.