From 4fdf6f3ea73ca756b74fe036330a25de48c465b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20Sch=C3=A4rtl?= <andreas@schaertl.me>
Date: Tue, 28 Apr 2020 18:21:48 +0000
Subject: [PATCH] fix-rdf-file: fix: keep iri scheme

---
 ulo/fix-rdf-file.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ulo/fix-rdf-file.py b/ulo/fix-rdf-file.py
index a671246..d12a36e 100755
--- a/ulo/fix-rdf-file.py
+++ b/ulo/fix-rdf-file.py
@@ -9,6 +9,8 @@ import sys
 def fix_quoted(s: str) -> str:
     payload = s.strip('"')
     fixed = parse.quote(payload)
+    fixed = fixed.replace('http%3A', 'http:')
+    fixed = fixed.replace('https%3A', 'https:')
     return '"%s"' % fixed
 
 
-- 
GitLab