question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RA.isMatch / RA.isNotMatch

See original GitHub issue

Ramda offers ‘match’, but how about we offer an alias of isMatch and its complement isNotMatch? That would feel a little more consistent with our other predicates.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Undistractioncommented, Apr 11, 2018

Sorry. I meant using R.test, not R.match, but I can see that calling it 'RA.isMatch` in that case is confusing.

I do feel like a negation of test would be useful (that is why I first opened the issue) - it feels wrong that we offer so many predicates, but not a flexible one for regexp, and my OCD kicks in when I use test alongside a set of is... predicates. To me it is a matter of consistency. My code reads better if I have isMatch and isNotMatch.

0reactions
char0ncommented, Feb 9, 2020

I can see a place for a negation of R.test. But to come up with the name would be pretty interesting ;]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regex.IsMatch Method (System.Text.RegularExpressions)
Indicates whether the specified regular expression finds a match in the specified input string, using the specified matching options and time-out interval.
Read more >
Rheumatoid arthritis (RA)
Rheumatoid arthritis is a chronic, systemic inflammatory disorder that primarily affects the joints ... Mismatch between final diagnostic statement and EHR-.
Read more >
Standard Boot Firmware for the RA family MCUs Based on ...
When there is a mismatch in the authentication key stored in the device, boot firmware returns 'Trusted system error'. * Flash memory status ......
Read more >
Troubleshoot Common L2L and Remote Access IPsec ...
Enable NAT-Traversal (#1 RA VPN Issue). Test Connectivity Properly ... Tunnel Rejected: IKE peer does not match remote peer as defined in L2L...
Read more >
IPsec VPN troubleshooting
The SA proposals do not match (SA proposal mismatch). The most common problem with IPsec VPN tunnels is a mismatch between the proposals...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found