polymer icon indicating copy to clipboard operation
polymer copied to clipboard

casemap bug

Open christophe-g opened this issue 6 years ago • 3 comments

Description

For strings that have already been casemapped (and cashed under caseMap object in https://github.com/Polymer/polymer/blob/master/lib/utils/case-map.js), calling either dashToCamelCase or camelToDashCase will convert to the other notation, whatever the initial notation is.

Steps to Reproduce

Polymer.CaseMap.dashToCamelCase('i-should-stay-dash') => "iShouldStayDash" (o.k.)
Polymer.CaseMap.camelToDashCase('i-should-stay-dash') => "iShouldStayDash" (not o.k. - it should return 'i-should-stay-dash')

Expected Results

calling camelToDashCase on a 'dashed-string' should keep the sting in a dashed mode.

christophe-g avatar Dec 16 '18 13:12 christophe-g

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 13 '20 05:03 stale[bot]

I hope this issue will be resolved.

naoak avatar Aug 11 '20 05:08 naoak

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 22 '21 18:08 stale[bot]