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

1169 refactor get rows functionality #1268

Merged

Conversation

jgreywolf
Copy link
Contributor

📑 Summary

Moved getRows function from state/stateRenderer.js and state/shapes.js into common/common.js. Broke out section into small one line functions for replacing line breaks, then moved the sanitize function from utils.js to this new module as there is shared functionality

Resolves #1169

📋 Tasks

Make sure you

  • 📖 have read the contribution guidelines
  • 💻 have added unit/e2e tests (if appropriate)
  • 🔖 targeted develop branch

jgreywolf and others added 2 commits February 21, 2020 12:35
Moved getRows function from `state/stateRenderer.js` and `state/shapes.js` into `common/common.js`. Broke out section into small one line functions for replacing line breaks, then moved the `sanitize` function from `utils.js` to this new module as there is shared functionality
Copy link
Member

@GDFaber GDFaber left a comment

Choose a reason for hiding this comment

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

LGTM and feels more tidy now that it's centralized. Good work!

@GDFaber GDFaber self-requested a review February 25, 2020 18:11
@GDFaber GDFaber merged commit 990e620 into mermaid-js:develop Feb 25, 2020
Copy link
Collaborator

@knsv knsv left a comment

Choose a reason for hiding this comment

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

Great! We need more of this kind of work!

@jgreywolf jgreywolf deleted the 1169-RefactorGetRowsFunctionality branch February 27, 2020 17:05
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.

Refactoring: Break out getRows
3 participants