From 9a0069f5b4161ed576bd5eebb8f34c1d7bc1ab9a Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Fri, 27 Sep 2024 19:53:52 -0400 Subject: [PATCH] Use else-if when handling modifiers --- spec.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec.html b/spec.html index f9cf2f45fa..121379a5cf 100644 --- a/spec.html +++ b/spec.html @@ -37295,12 +37295,12 @@

1. Let _unicode_ be _rer_.[[Unicode]]. 1. Let _unicodeSets_ be _rer_.[[UnicodeSets]]. 1. Let _capturingGroupsCount_ be _rer_.[[CapturingGroupsCount]]. - 1. If _add_ contains *"i"*, set _ignoreCase_ to *true*. - 1. If _add_ contains *"m"*, set _multiline_ to *true*. - 1. If _add_ contains *"s"*, set _dotAll_ to *true*. 1. If _remove_ contains *"i"*, set _ignoreCase_ to *false*. + 1. Else if _add_ contains *"i"*, set _ignoreCase_ to *true*. 1. If _remove_ contains *"m"*, set _multiline_ to *false*. + 1. Else if _add_ contains *"m"*, set _multiline_ to *true*. 1. If _remove_ contains *"s"*, set _dotAll_ to *false*. + 1. Else if _add_ contains *"s"*, set _dotAll_ to *true*. 1. Return the RegExp Record { [[IgnoreCase]]: _ignoreCase_, [[Multiline]]: _multiline_, [[DotAll]]: _dotAll_, [[Unicode]]: _unicode_, [[UnicodeSets]]: _unicodeSets_, [[CapturingGroupsCount]]: _capturingGroupsCount_ }.