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

Use v flag instead of u for pattern RegExps #7908

Merged
merged 1 commit into from
Apr 25, 2023
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
13 changes: 10 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3015,6 +3015,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<ul class="brief">
<li>The <dfn data-x-href="https://tc39.es/proposal-resizablearraybuffer/#sec-isarraybufferviewoutofbounds">IsArrayBufferViewOutOfBounds</dfn> abstract operation</li>
</ul>

<p>User agents that support JavaScript must also implement the <cite>RegExp <code data-x="">v</code> flag</cite>
proposal. <ref spec=JSREGEXPVFLAG></p>
</dd>

<dt>WebAssembly</dt>
Expand Down Expand Up @@ -50291,7 +50294,8 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
data-x="concept-fe-values">values</span>, are to be checked.</p>

<p>If specified, the attribute's value must match the JavaScript <i
data-x="js-prod-Pattern">Pattern</i><sub><code data-x="">[+UnicodeMode, +N]</code></sub> production.</p>
data-x="js-prod-Pattern">Pattern</i><sub><code data-x="">[+UnicodeSetsMode, +N]</code></sub> production. <ref
spec=JSREGEXPVFLAG></p>

<div w-nodev>

Expand All @@ -50307,7 +50311,7 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
data-x="attr-input-pattern">pattern</code> attribute of the element.</p></li>

<li><p>Let <var>regexpCompletion</var> be <span>RegExpCreate</span>(<var>pattern</var>,
"<code data-x="">u</code>"). <ref spec=JAVASCRIPT></p></li>
"<code data-x="">v</code>"). <ref spec=JSREGEXPVFLAG></p></li>

<li>
<p>If <var>regexpCompletion</var> is an <span data-x="Completion Record">abrupt
Expand All @@ -50322,7 +50326,7 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10
<var>pattern</var>, followed by "<code data-x="">)$</code>".</p></li>

<li><p>Return ! <span>RegExpCreate</span>(<var>anchoredPattern</var>, "<code
data-x="">u</code>").</p></li>
data-x="">v</code>").</p></li>
</ol>

<p class="note">The reasoning behind these steps, instead of just using the value of the <code
Expand Down Expand Up @@ -132689,6 +132693,9 @@ INSERT INTERFACES HERE
<dt id="refsJSJSONMODULES">[JSJSONMODULES]</dt>
<dd><cite><a href="https://tc39.es/proposal-json-modules/">JSON Modules</a></cite>. Ecma International.</dd>

<dt id="refsJSREGEXPVFLAG">[JSREGEXPVFLAG]</dt>
<dd><cite><a href="https://github.com/tc39/proposal-regexp-v-flag">RegExp <code data-x="">v</code> flag with set notation + properties of strings</a></cite>. Ecma International.</dd>

<dt id="refsJSRESIZABLEBUFFERS">[JSRESIZABLEBUFFERS]</dt>
<dd><cite><a href="https://tc39.es/proposal-resizablearraybuffer/">Resizable ArrayBuffer and growable SharedArrayBuffer</a></cite>. Ecma International.</dd>

Expand Down