[wp-trac] [WordPress Trac] #23625: Add function to extract or parse chat as structured data
WordPress Trac
noreply at wordpress.org
Thu Mar 7 22:32:28 UTC 2013
#23625: Add function to extract or parse chat as structured data
----------------------------------------+------------------
Reporter: wonderboymusic | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 3.6
Component: Post Formats | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests |
----------------------------------------+------------------
Comment (by wonderboymusic):
Patch updated - here are the test cases, Unit Tests are forthcoming:
=== One Stanza, no messages are multiline
Scott: Hey.[[BR]]
Nacin: Go away.
=== One Stanza, no messages are multiline, followed by commentary
Scott: Hey.[[BR]]
Nacin: Go away.
Nacin is mean to me.
=== One Stanza, contains one of more multiline messages with or without :s
that are not usernames
Scott: Hey.[[BR]]
I have a question.[[BR]]
Nacin: Go away.
OR
Scott: Hey.[[BR]]
I have a question: what is your favorite color?[[BR]]
Nacin: Go away.
=== One Stanza, contains one of more multiline messages with or without :s
that are not usernames, followed by commentary with or without :s that are
not usernames
Scott: Hey.[[BR]]
I have a question.[[BR]]
Nacin: Go away.
Nacin hates color.
OR
Scott: Hey.[[BR]]
I have a question: what is your favorite color?[[BR]]
Nacin: Go away.
Nacin hates color.
=== Multi-stanza, no messages are multiline
Scott: Hey.[[BR]]
Nacin: Go away.
Helen: Hey.[[BR]]
Nacin: Go away.
=== Multi-stanza, no messages are multiline, followed by commentary
Scott: Hey.[[BR]]
Nacin: Go away.
Helen: Hey.[[BR]]
Nacin: Go away.
Nacin appears busy today.
=== Multi-stanza, contains one of more multiline messages with or without
:s that are not usernames
Scott: Hey.[[BR]]
I have a question: what is your favorite color?[[BR]]
Nacin: Go away.
Helen: Hey.[[BR]]
I have a question: what is your favorite pizza topping?[[BR]]
Nacin: Go away.
=== Multi-stanza, contains one of more multiline messages with or without
:s that are not usernames, followed by commentary with or without :s that
are not usernames
Scott: Hey.[[BR]]
I have a question: what is your favorite color?[[BR]]
Nacin: Go away.
Helen: Hey.[[BR]]
I have a question: what is your favorite pizza topping? Or go here
http://www.justinbieber.com [[BR]]
Nacin: Go away.
Nacin hates color and pizza.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23625#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list