Skip to content

Commit

Permalink
Fixes regex for JS examples (#1591)
Browse files Browse the repository at this point in the history
This PR fixes a regex example which Prism does not highlight correctly
because it is preceded by a comment.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Oct 22, 2018
1 parent 0d73f7f commit b41fb8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/prism-javascript.html
Expand Up @@ -49,7 +49,7 @@ <h2>A division operator on the same line as a regex</h2>

<h2>ES6 features</h2>
<pre><code>// Regex "y" and "u" flags
/[a-zA-Z]+/gimyu
var a = /[a-zA-Z]+/gimyu;

// for..of loops
for(let x of y) { }
Expand All @@ -74,4 +74,4 @@ <h2>Known failures</h2>

<h3>String interpolation containing a closing brace</h3>
<pre><code>`${ {foo:'bar'}.foo }`
`${ '}' }`</code></pre>
`${ '}' }`</code></pre>

0 comments on commit b41fb8f

Please sign in to comment.