<p dir="auto">Challenge <a href="https://www.freecodecamp.com/en/challenges/basic-javascript/escaping-literal-quotes-in-strings" rel="nofollow">escaping-literal-quotes-in-strings</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="

var myStr = &quot;I am a \&quot;double quoted\&quot; string inside \&quot;double quotes\&quot;.&quot;; // Change this line

![escaping literal quotes](https://cloud.githubusercontent.com/assets/21290175/18400642/cbfdd8dc-76a4-11e6-9b20-cd3b661daf4a.jpg)

It passes the _Variable myStr should contain the string: I am a &quot;double quoted&quot; string inside &quot;double quotes&quot;.__
But fails the _You should use two double quotes (&quot;) and four escaped double quotes (\&quot;)._"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">"I am a \"double quoted\" string inside \"double quotes\"."</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span>

<span class="pl-c1">!</span><span class="pl-kos">[</span><span class="pl-s1">escaping</span> <span class="pl-s1">literal</span> <span class="pl-s1">quotes</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">https</span>:<span class="pl-c">//cloud.githubusercontent.com/assets/21290175/18400642/cbfdd8dc-76a4-11e6-9b20-cd3b661daf4a.jpg)</span>

<span class="pl-v">It</span> <span class="pl-s1">passes</span> <span class="pl-s1">the</span> <span class="pl-s1">_Variable</span> <span class="pl-s1">myStr</span> <span class="pl-s1">should</span> <span class="pl-s1">contain</span> <span class="pl-s1">the</span> <span class="pl-s1">string</span>: <span class="pl-v">I</span> <span class="pl-s1">am</span> <span class="pl-s1">a</span> <span class="pl-s">"double quoted"</span> <span class="pl-s1">string</span> <span class="pl-s1">inside</span> <span class="pl-s">"double quotes"</span><span class="pl-kos">.</span><span class="pl-c1">__</span>
<span class="pl-v">But</span> <span class="pl-s1">fails</span> <span class="pl-s1">the</span> <span class="pl-s1">_You</span> <span class="pl-s1">should</span> <span class="pl-s1">use</span> <span class="pl-s1">two</span> <span class="pl-s1">double</span> <span class="pl-s1">quotes</span> <span class="pl-kos">(</span>") and four escaped double quotes (\")._</pre></div>
<p dir="auto">On the current staging, two challenges ("Escaping Literal Quotes in Strings" and "Quoting Strings with Single Quotes") do not pass all tests with standard solution code.</p>
<p dir="auto">Namely, tests asserting regex match lengths for non-escaped double quotes are failing:<br>
<code class="notranslate">code.match(/[^\\\\]\"/g).length === 2</code> in the former challenge and<br>
<code class="notranslate">code.match(/\"/g).length === 4</code> in the latter.</p>
<p dir="auto">(Note: each of these is only one half of their respective test, and it might be beneficial in this case to split each test into two parts so users know where to look for their mistake instead of counting every quotation mark, as well as speeding up debugging if something breaks the regex again later on.)</p>