Timing out synchronous functions with regex

The Snyk Container team had this challenge: Given a tag, parse its parts to be able to compare it to other similar tags. It was a fun problem to solve, and we'd love to share how we got to our final solution involving timing out synchronous functions with regex!
原文:https://www.a8q9.cn/en/article/timing-out-synchronous-functions-with-regex-6ec91d.html