
v0.39: Grademe is back in your terminal.
Try the CLI betaMatch text against a pattern where * means any run of characters, in a single linear scan.
July 2, 2019. Cloudflare deploys one new firewall rule. Buried in it is a regular expression that backtracks catastrophically, and since the firewall runs on every single request before anything else, CPUs across the whole network jump to 100 percent. For 27 minutes a large slice of the web, Discord and Shopify included, just returns errors. The lesson: match in linear time, never explode. Build the matcher that scans once.
wildcard_match("a*c", "abc")Expected result
1For your own tracking. Tests grade your code.
wildcard_match("a*c", "abd")Expected result
0wildcard_match("*=*", "key=val")Expected result
1Expected files
match.cAllowed functions
None. Write every helper yourself.
