You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull #157 has broken the conversion of filenames that contain numbers in the middle. Previously the filename 'BodyText2' would have produced a component named 'BodyText2', but now the code incorrectly produces 'BodyText' instead because it's stripping numbers from the entire string.
The comment in the code states that identifiers must start with a letter, but the code beneath it doesn't only remove numbers at the start: they're stripped wherever they appear.
Pull #157 has broken the conversion of filenames that contain numbers in the middle. Previously the filename 'BodyText2' would have produced a component named 'BodyText2', but now the code incorrectly produces 'BodyText' instead because it's stripping numbers from the entire string.
The comment in the code states that identifiers must start with a letter, but the code beneath it doesn't only remove numbers at the start: they're stripped wherever they appear.
2dfb833#diff-6518fffc4e430fcc63cd30eb07131a95R848
Adding a new unit test shows the problem, as it fails:
I'll raise a PR. (PR #168)
The text was updated successfully, but these errors were encountered: