Update PARM_REGEX to match at the start or whitespace#3115
Update PARM_REGEX to match at the start or whitespace#3115bobcozzi wants to merge 1 commit intocodefori:masterfrom
Conversation
Now keywords can appear in column 1 or anywhere after column 1 provided at least 1 space is detected before the keyword.
|
@bobcozzi do you have a test case that didn't work before the PR we can use to validate the change ? |
|
|
@bobcozzi @sebjulliand Isn't it a multi-command action when newline are in the action string? From what I know, actions can not have commands split over multiple lines by newlines. Any newline will be considered multiple commands. You may see some commands occupy more than one line, but that's the text input field in the html splitting the line according to the width. The above example gives this when run: Since an action can have only one command per line, I think the original regex is okay... 🤔 |
|
I agree that multiline commands are not implemented in actions. |
Now keywords are detected when they appear in column 1 or later. Previously they always required a blank in front of them, but now they can also appear in position/column 1 of the line.
Changes
How to test this PR
Checklist
console.logs I added