<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From e3846a222a5e715935b943f1d5de8ccb410e24dc Mon Sep 17 00:00:00 2001
From: Slaven Rezic &lt;slaven@rezic.de&gt;
Date: Wed, 8 Jun 2016 22:40:28 +0200
Subject: [PATCH] workaround for "Unescaped left brace in regex" issue (RT
 #115109)

---
 t/anchors.t | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/t/anchors.t b/t/anchors.t
index a98d13d..a8402cd 100644
--- a/t/anchors.t
+++ b/t/anchors.t
@@ -54,7 +54,7 @@ my $output;
 
 $toc-&gt;setOptions({
     #header =&gt; '',  # by default, \n&lt;!-- Table of Contents generated by Perl - HTML::Toc --&gt;\n
-    insertionPoint =&gt; 'replace {{toc}}',
+    insertionPoint =&gt; 'replace \{\{toc}}',
     doLinkToId =&gt; 0,
     levelToToc =&gt; "[1-6]",
     templateAnchorName =&gt; \&amp;assembleAnchorName,
@@ -333,7 +333,7 @@ $toc-&gt;setOptions({
     header =&gt; '',  # by default, \n&lt;!-- Table of Contents generated by Perl - HTML::Toc --&gt;\n
     templateAnchorName =&gt; \&amp;assembleAnchorName,
     levelToToc =&gt; "[1-1]",
-    insertionPoint =&gt; 'replace {{toc \[?\d*-?\d*\]?}}'
+    insertionPoint =&gt; 'replace \{\{toc \[?\d*-?\d*\]?}}'
 });
 $tocInsertor-&gt;insert($toc, $content, {output =&gt; \$output});
 eq_or_diff($output, &lt;&lt;'HTML', 'range of header levels to make TOC out of: 1-1', {max_width =&gt; 120});
@@ -374,7 +374,7 @@ $toc-&gt;setOptions({
     header =&gt; '',  # by default, \n&lt;!-- Table of Contents generated by Perl - HTML::Toc --&gt;\n
     templateAnchorName =&gt; \&amp;assembleAnchorName,
     levelToToc =&gt; "[5-8]",
-    insertionPoint =&gt; 'replace {{toc \[?\d*-?\d*\]?}}'
+    insertionPoint =&gt; 'replace \{\{toc \[?\d*-?\d*\]?}}'
 });
 $tocInsertor-&gt;insert($toc, $content, {output =&gt; \$output});
 eq_or_diff($output, &lt;&lt;'HTML', 'range of header levels to make TOC out of: 5-', {max_width =&gt; 120});
-- 
2.1.4

</pre></body></html>