Skip to content

Commit 93a83a8

Browse files
committed
Update replacement for comments that should remain in the output.
1 parent d2b42a3 commit 93a83a8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

common/common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,6 @@ function unComment(doc, content) {
271271
return content
272272
.replace(/<!--/, '')
273273
.replace(/-->/, '')
274-
.replace(/< !--/g, '<!--')
275-
.replace(/-- >/g, '-->');
274+
.replace(/< !\s*-\s*-/g, '<!--')
275+
.replace(/-\s*- >/g, '-->');
276276
}

index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8451,7 +8451,6 @@ <h3>Graph Containers</h3>
84518451
</script>
84528452
-->
84538453
</pre>
8454-
</pre>
84558454
<table class="statements"
84568455
data-result-for="Combining multiple JSON-LD script elements into a single dataset-original"
84578456
data-to-rdf>
@@ -8537,15 +8536,15 @@ <h3>Graph Containers</h3>
85378536
data-content-type="text/html">
85388537
<!--
85398538
<script type="application/ld+json">
8540-
< !--
8539+
< ! - -
85418540
{
85428541
"@context": "https://json-ld.org/contexts/person.jsonld",
85438542
"@id": "http://dbpedia.org/resource/John_Lennon",
85448543
"name": "John Lennon",
85458544
"born": "1940-10-09",
85468545
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
85478546
}
8548-
-- >
8547+
- - >
85498548
</script>
85508549
-->
85518550
</pre>

0 commit comments

Comments
 (0)