From 0d9e8a81ec4b605ffdf02f16a8c95b2bd2ab87c6 Mon Sep 17 00:00:00 2001 From: Rinke Hoekstra Date: Wed, 10 Jul 2024 14:52:05 +0200 Subject: [PATCH] Passing this.flags to stringToN3 to ensure that format flags are properly used. Fixes #650 --- src/serializer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/serializer.js b/src/serializer.js index 4d25893b9..251f11c70 100644 --- a/src/serializer.js +++ b/src/serializer.js @@ -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)) {