Skip to content

[BUGFIX lts] support numbers in component names for Angle Brackets - #17552

Merged
rwjblue merged 1 commit into
emberjs:masterfrom
jenweber:bugfix-angle-brackets-17549
Feb 2, 2019
Merged

rwjblue merged 1 commit into
emberjs:masterfrom
jenweber:bugfix-angle-brackets-17549

Conversation

@jenweber

@jenweber jenweber commented Feb 2, 2019

Copy link
Copy Markdown
Contributor

Previously, a component named c3-plot would not work when invoked as <C3Plot />.
Now it will resolve correctly.

Closes #17549

Behavior:

'F3Bar' => 'f3-bar'
'Foo3Bar' => 'foo3-bar'
'Foo3barBaz' => 'foo3bar-baz'
'FooB3ar' => 'foo-b3ar'

Notably it does not support Foo2bar => foo-2bar, but it did not support it before this change either.

It's a bit edge-casey but I think given the prevalent use of C3 and D3 in JS, it makes sense to lean towards this patch's behavior.

@rwjblue rwjblue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes look good, can you change the commit prefix to [BUGFIX lts]?

@rwjblue rwjblue changed the title [BUGFIX beta] support numbers in component names for Angle Brackets [BUGFIX lts] support numbers in component names for Angle Brackets Feb 2, 2019
Previously, c3-plot would not work when invoked as <C3Plot />.
Now it will resolve correctly.
Closes #17549
@jenweber

jenweber commented Feb 2, 2019

Copy link
Copy Markdown
Contributor Author

Done! Thanks for the tips on which files to look at to fix this.

@rwjblue
rwjblue merged commit d940958 into emberjs:master Feb 2, 2019
@rwjblue

rwjblue commented Feb 2, 2019

Copy link
Copy Markdown
Member

Hehe, well it was my fault to begin with so....

@rwjblue

rwjblue commented Feb 2, 2019

Copy link
Copy Markdown
Member

Thank you for fixing it!

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.

Some components with numbers in the name don't work with Angle Brackets

2 participants