Skip to content

Commit c571075

Browse files
authored
Merge pull request #3748 from alphagov/ignore-html-comment
Ignore HTML comment in frontend diff
2 parents 7a4d2de + 80560b3 commit c571075

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/live_content/diff_frontend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def normalise_html(html)
8888
/(datetime=)(?:"|")(\d{4}-\d{2}-\d{2})[ T]\d{2}(:\d{2}:\d{2})[ Z]?(?:UTC|\+00:00|\+01:00)?(?:"|")/,
8989
'\1"\2 HH\3"',
9090
)
91+
.gsub(/\\u003c.+--\\u003e/, "")
9192
end
9293

9394
html_without_graphql = normalise_html(get_html(uri_without_graphql)).force_encoding("UTF-8")

0 commit comments

Comments
 (0)