Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS: Regex example #1591

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/prism-javascript.html
Original file line number Diff line number Diff line change
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>