Skip to content

Commit

Permalink
prettier --write '**/*.{js,json,md}'
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed May 11, 2021
1 parent f608d29 commit 4f888d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/getCounterCharacters.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ function getCounterCharacters(counterStyle, counterStyles, counterValue) {
if (counterValue >= 1 && textBySymbolNumber.length > 0) {
const numRepetitions =
1 + Math.floor((counterValue - 1) / textBySymbolNumber.length);
text += textBySymbolNumber[
(counterValue - 1) % textBySymbolNumber.length
].repeat(numRepetitions);
text +=
textBySymbolNumber[
(counterValue - 1) % textBySymbolNumber.length
].repeat(numRepetitions);
} else {
text += renderFallback();
}
Expand Down

0 comments on commit 4f888d6

Please sign in to comment.