ITADN

executing a wedged cell can cause a loop

#45Closedjaked 创建于 2024-07-03
J
jakedcommented
with this code ```ts const phoneNumberRegex = /^\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/; phoneNumberRegex.exec("555-867-5309") ``` the regex gets wedged (?!) when there's not a match. If you then change the input so there is a match, there's a loop that spews "already executing" messages to the logs.
关闭于 2024-07-22 1 条评论