Skip to content

Commit

Permalink
Passing this.flags to stringToN3 to ensure that format flags are prop…
Browse files Browse the repository at this point in the history
…erly used. Fixes linkeddata#650
  • Loading branch information
RinkeHoekstra committed Jul 10, 2024
1 parent cfc0f8c commit 0d9e8a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ export class Serializer {
return expr.value === '1' ? 'true' : 'false'
}
}
var str = this.stringToN3(expr.value)
var str = this.stringToN3(expr.value, this.flags)
if (expr.language) {
str += '@' + expr.language
} else if (!expr.datatype.equals(this.xsd.string)) {
Expand Down

0 comments on commit 0d9e8a8

Please sign in to comment.