Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S:g/// bug #5869

Closed
p6rt opened this issue Dec 7, 2016 · 4 comments
Closed

S:g/// bug #5869

p6rt opened this issue Dec 7, 2016 · 4 comments
Labels
regression Issue did not exist previously

Comments

@p6rt
Copy link

p6rt commented Dec 7, 2016

Migrated from rt.perl.org#130289 (status was 'resolved')

Searchable as RT130289$

@p6rt
Copy link
Author

p6rt commented Dec 7, 2016

From marc@0branch.com

S/// with the global adverb returns an empty Slip on match failure. This is
demonstrated in the first case below,

S​:g/d// given 'abc'
()
S​:g/d// given 'abcd'
abc

Non-global replacement works as expected,

S/d// given 'abc'
abc
S/d// given 'abcd'
abc

AlexDaniel ran bisectable in #perl6 and determined b7201a8f223 to be the
underlying cause.

Best,
Marc

@p6rt
Copy link
Author

p6rt commented Dec 9, 2016

From @zoffixznet

On Tue, 06 Dec 2016 19​:54​:27 -0800, marc@​0branch.com wrote​:

S/// with the global adverb returns an empty Slip on match failure. This is
demonstrated in the first case below,

S​:g/d// given 'abc'
()
S​:g/d// given 'abcd'
abc

Non-global replacement works as expected,

S/d// given 'abc'
abc
S/d// given 'abcd'
abc

AlexDaniel ran bisectable in #perl6 and determined b7201a8f223 to be the
underlying cause.

Best,
Marc

Thank you for the report. This is now fixed!

Fix​: rakudo/rakudo@5476d60
Tests​: Raku/roast@12b7712f94

@p6rt
Copy link
Author

p6rt commented Dec 9, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Dec 9, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Dec 9, 2016
@p6rt p6rt added the regression Issue did not exist previously label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Issue did not exist previously
Projects
None yet
Development

No branches or pull requests

1 participant