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

Refactor <ExpandableText> #44

Merged
merged 2 commits into from
Oct 7, 2017

Conversation

MrOrz
Copy link
Member

@MrOrz MrOrz commented Oct 6, 2017

  1. Make traverseForStrings() in util/text support BREAK
  2. Implements truncate(), which truncates strings by length, and appends moreElem when truncation happens. This is the core of <ExpandableText>. (See util/__tests__/__snapshots__/text.js.snap)
  3. Rewrite <ExpandableText> to leverage truncate(). Move linkify() and nl2br() to outside of <ExpandableText> implementation.

@MrOrz MrOrz self-assigned this Oct 6, 2017
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 92.683% when pulling 03c0cee on refactor-expandable-text into 4992f8f on refactor-word-processors.

@godgunman godgunman merged commit 8061665 into refactor-word-processors Oct 7, 2017
@MrOrz MrOrz deleted the refactor-expandable-text branch October 8, 2017 13:01
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.

None yet

3 participants