You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2024. It is now read-only.
The problem is that esm's find-indexes is using the unescaped identifiers in a regex (e.g: S and $), which, in this case, causes an infinite loop, i.e: pattern becomes new RegExp("\\b(?:S|$)\\b", "g") which matches 0 characters, and therefore matches infinitely (e.g in the while loop).
Suggested bug fix: escape the identifiers used in the regex.
It's prevalent to import Sanctuary as
Sand sanctuary-def as$, i.e:The problem is that esm's find-indexes is using the unescaped identifiers in a regex (e.g:
Sand$), which, in this case, causes an infinite loop, i.e:patternbecomesnew RegExp("\\b(?:S|$)\\b", "g")which matches 0 characters, and therefore matches infinitely (e.g in the while loop).Suggested bug fix: escape the
identifiersused in the regex.