Skip to content

Commit

Permalink
Updated ctree.js 📥
Browse files Browse the repository at this point in the history
  • Loading branch information
MarketingPip authored Oct 7, 2024
1 parent a50a716 commit 190a897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctree.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ g/g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g\\
* @returns {string} The string with colors applied to digits.
*/
function applyColorsToLights(input) {
const regex = /(\d+)/g; // Matches one or more digits followed by 'O'
const regex = /(\d+)O?/g; // Matches one or more digits followed by optional 'O'
return input.replace(regex, (match) => generateColor("O"));
}

Expand Down

0 comments on commit 190a897

Please sign in to comment.