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

Poem Splitter #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Poem Splitter #3

wants to merge 2 commits into from

Conversation

jade-i-k
Copy link
Collaborator

JS file created with a function that takes an input string (the poem that needs to be split), splits it by new line character, places each line into an array, and returns the array.

Copy link
Owner

@sbahaud sbahaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left comments

@@ -0,0 +1,5 @@
//Splits string containing poem into array of lines
function splitPoem(poem) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is required in the client. The server is probably going to get the uploaded poem as a json, do the split and save it to datastore. Please sync with colin on the server poem upload endpoint that he is working on.

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

Successfully merging this pull request may close these issues.

2 participants