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 has been archived by the owner on Oct 16, 2022. It is now read-only.
The immediate cause is the gusb0.loop's first guard (offset >= l). offset and l are both 0.
However, without the guard gsub0 loops forever because any string has empty substring at its right end that matches the regex.
I think that the root of the problem is that gsub0 cannot determine whether the empty string is consumed or not from the value of offset.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm not sure if this is a bug.
Passing an empty string as the third argument,
sub
returns the replacement string.But
gsub
returns an empty string for the same input.The text was updated successfully, but these errors were encountered: