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

Reader Tags: inconsistent tag spelling or case formatting between the sidebar and main area #1548

Closed
formosattic opened this issue Dec 14, 2015 · 1 comment
Assignees
Labels
[Feature] Reader The reader site on Calypso. [Type] Bug When a feature is broken and / or not performing as intended

Comments

@formosattic
Copy link

selection_446

In the sidebar, in the Tags section, we have "WordPress", but in the main area of the Reader, it displays as "Word Press".
Another example is: "tokyo" in the sidebar, but "Tokyo" in the main area.

Same result in Firefox and Chrome.

@formosattic formosattic added [Type] Bug When a feature is broken and / or not performing as intended [Feature] Reader The reader site on Calypso. labels Dec 14, 2015
@formosattic formosattic changed the title Reader Tags: "WordPress" displays as "Word Press" Reader Tags: inconstent tag spelling or case formatting between the sidebar and main area Dec 14, 2015
@bluefuton bluefuton changed the title Reader Tags: inconstent tag spelling or case formatting between the sidebar and main area Reader Tags: inconsistent tag spelling or case formatting between the sidebar and main area Dec 14, 2015
@bluefuton bluefuton self-assigned this Dec 14, 2015
@bluefuton
Copy link
Contributor

Thanks for the report @formosattic!

This is happening because we're using toTitleCase() in the tag stream header. It attempts to format camelCase strings (like WordPress) into two words:

https://github.com/ianstormtaylor/to-title-case/blob/master/test/tests.js#L14

Tempted to remove toTitleCase so the name is consistent between the menu and header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Reader The reader site on Calypso. [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

2 participants