Page MenuHomeFeedback Tracker

RegexFind error: "'index' elements provided, 'count' expected" when index >= count (out of bounds)
Feedback, NormalPublic

Description

The RegexFind command:

_text regexFind [_find, _index];

throws the error: "'index' elements provided, 'count' expected" when the index is out of bounds. For example:

"abc" regexFind ["d", 3];

throws Error 3 elements provided, 3 expected

It should fail silently and return [] instead.

Details

Severity
Tweak
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Leopard20 created this task.Sep 1 2021, 2:40 AM
Leopard20 updated the task description. (Show Details)Sep 1 2021, 2:43 AM
dedmen changed the task status from New to Feedback.Sep 1 2021, 2:34 PM
dedmen added a subscriber: dedmen.

and return [] instead.

It already returns [], it just also prints error on the side

Fixed 2.08 148143

dedmen claimed this task.Sep 1 2021, 2:34 PM