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

.split(/<ws>/) treats ends of a string unequally in Rakudo #681

Closed
p6rt opened this issue Feb 6, 2009 · 8 comments
Closed

.split(/<ws>/) treats ends of a string unequally in Rakudo #681

p6rt opened this issue Feb 6, 2009 · 8 comments

Comments

@p6rt
Copy link

p6rt commented Feb 6, 2009

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

Searchable as RT63066$

@p6rt
Copy link
Author

p6rt commented Feb 6, 2009

From @masak

<pmichaud> rakudo​: say 'hello-world'.split(/<ws>/).perl;
<polyglotbot> OUTPUT[["hello", "-", "world", ""]␤]
<pmichaud> that seems wrongish -- seems like there either should be a
"" at the front or no "" at the end.
<pmichaud> rakudo​: say 'hello-world'.split(/<wb>/).perl;
<polyglotbot> OUTPUT[["hello", "-", "world", ""]␤]
* pmichaud invites masak to submit a rakudobug. :-)
* masak submits

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in b/t/spec/S32-str/split.t

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

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

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

From @bbkr

On Kiev build​:

[11​:57] <bbkr> rakudo​: say 'a-b-c'.split(/<ws>/).perl; # doesn't look good
[11​:57] <p6eval> rakudo 36998b​: OUTPUT«("", "", "", "", "", "", Mu)␤»

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @coke

Output of these samples has changed​:

say 'hello-world'.split(/<ws>/).perl;
("", "hello", "-", "world", "")
say 'hello-world'.split(/<wb>/).perl;
("", "hello", "-", "world", "")
say 'a-b-c'.split(/<ws>/).perl;
("", "a", "-", "b", "-", "c", "")

--
Will "Coke" Coleda

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @coke

Output of these samples has changed​:

say 'hello-world'.split(/<ws>/).perl;
("", "hello", "-", "world", "")
say 'hello-world'.split(/<wb>/).perl;
("", "hello", "-", "world", "")
say 'a-b-c'.split(/<ws>/).perl;
("", "a", "-", "b", "-", "c", "")

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

From @moritz

tested in split.t

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jan 31, 2011

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

@p6rt p6rt closed this as completed Jan 31, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant