Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: get tempComplexRegexTrigger multiline to work#5946

Merged
vadi2 merged 2 commits intoMudlet:developmentfrom
Edru2:multinine-tempRegexTrigger
Feb 11, 2022
Merged

fix: get tempComplexRegexTrigger multiline to work#5946
vadi2 merged 2 commits intoMudlet:developmentfrom
Edru2:multinine-tempRegexTrigger

Conversation

@Edru2
Copy link
Member

@Edru2 Edru2 commented Feb 2, 2022

Brief overview of PR changes/additions

Should solve the issue at https://app.bountysource.com/issues/105127054-tempcomplexregextrigger-multiline-not-working

Motivation for adding to Mudlet

fix #5854

Other info (issues closed, discussion etc)

There are still a lot of issues with tempComplexRegexTrigger as mentioned at #5749

Should solve the issue.
The code in the example wont work as there is no linedelta set.
this should work:

t1 = tempComplexRegexTrigger("newname3", "^xxx", [[]], 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, nil)
t2 = tempComplexRegexTrigger("newname3", "^yyy", [[echo("<--Line 2")]], 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, nil)

Release post highlight

fix: tempComplexRegexTrigger multiline should work again

@add-deployment-links
Copy link

add-deployment-links bot commented Feb 2, 2022

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@mudlet-machine-account mudlet-machine-account added this to the 4.16.0 milestone Feb 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2022

Messages
✔️

PR type: Fix

Generated by 🚫 dangerJS against 3dde802

@Edru2 Edru2 changed the title fix: get tempRegexTrigger multiline to work fix: get tempComplexRegexTrigger multiline to work Feb 2, 2022
@Edru2 Edru2 marked this pull request as ready for review February 2, 2022 22:06
@Edru2 Edru2 requested a review from a team as a code owner February 2, 2022 22:06
@Edru2 Edru2 requested review from a team February 2, 2022 22:06
Copy link
Member

@keneanung keneanung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into this as well and would have done a similar solution.

Just keep the scope on a single topic next time 😉

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2022

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Member

@vadi2 vadi2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed 👍

Given how fragile this is, could you write some busted tests with your example?

@vadi2 vadi2 merged commit 78929c9 into Mudlet:development Feb 11, 2022
@vadi2
Copy link
Member

vadi2 commented Feb 11, 2022

I believe you need to click 'Solve issue' in https://app.bountysource.com/issues/105127054-tempcomplexregextrigger-multiline-not-working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tempComplexRegexTrigger multiline not working

4 participants