Skip to content

Commit

Permalink
Use else-if when handling modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed Sep 27, 2024
1 parent 8e288c7 commit 9a0069f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -37295,12 +37295,12 @@ <h1>
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_ }.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 9a0069f

Please sign in to comment.