matching triggers with _
See original GitHub issueI have an external input that generates a trigger with an underscore in it, like
qrscene_visademo
I’m trying to understand how this can be matched or gets converted inside rive. Rive cannot accept punctuation in triggers, correct? But I thought it would strip out all the _ from any inputs too?
So then how should I write a trigger?
qrscene_visademo -> qrscenevisademo
neither of these seem to match.
in debugging the triggers I see this:
Try to match "scene qrscene_visademo" against scene qrscene_visademo (scene qrscene([A-Za-z]+?)visademo)
So I’m not really sure what that expansion is? It looks like the regex code but …
qrscene([A-Za-z]+?)visademo
would remove any such _ commands?
I’m also going to experiment with this:
bot.unicodePunctuation = new RegExp(/[.,!?;:]/g);
which could maybe leave the incoming message untouched?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
What is a match trigger? - Firearm Tutorials
Match triggers for AR-15 rifles often come with several different springs to achieve a shooters desired pull weight. The components used in ...
Read more >PAT MC and Trigger Matching - CERN Twiki
The PAT trigger matching offers the opportunity to compare and associate PAT objects with trigger objects. It can identify objects which ...
Read more >Implementing monitoring triggers and matching of triggered ...
Triggered monitoring in clinical trials is a risk-based monitoring approach where triggers (centrally monitored, predefined key risk and ...
Read more >Hi-Speed National Match - Trigger Set - Geissele Automatics
The Geissele Match Trigger is a perfect Space gun add-on as the pull weight can be adjusted to low levels that enhance trigger...
Read more >Triggers and rules · Cloudflare Zaraz docs
In most cases, your objective will be to create triggers that match specific website events that are relevant to your business. A trigger...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Originally I used
\w+
for that wildcard (which would likely also catch Unicode symbols), but\w
also matches numbers which I wanted to avoid, so I changed it to[A-Za-z]+
, but that only matches ASCII letters.Maybe it would be better to make it match
[^0-9]+
to instead exclude numbers rather than try to include all Unicode symbols.👍 @kirsle 1 vote for excluding numbers and spaces. The expression
[^\s\d]+
would be better for my unicode language. Thank you !