Skip to content

Commit

Permalink
Simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 7, 2023
1 parent c5250a7 commit 07f7387
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/combination/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ const isDimensionDefaultId = (id, propName, dimension) =>
// Retrieve the default id of a dimension
const getDefaultId = (propName, { prefixName, defaultIdPrefix }) => {
const propNameA = removePrefix(propName, prefixName)
const propNameB = propNameA.replace(DOT_REGEXP, '_')
const propNameB = propNameA.replaceAll('.', '_')
return `${defaultIdPrefix}${propNameB}`
}

const DOT_REGEXP = /\./gu

0 comments on commit 07f7387

Please sign in to comment.