Skip to content

Commit 190a897

Browse files
authored
Updated ctree.js 📥
1 parent a50a716 commit 190a897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ctree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ g/g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g\\
165165
* @returns {string} The string with colors applied to digits.
166166
*/
167167
function applyColorsToLights(input) {
168-
const regex = /(\d+)/g; // Matches one or more digits followed by 'O'
168+
const regex = /(\d+)O?/g; // Matches one or more digits followed by optional 'O'
169169
return input.replace(regex, (match) => generateColor("O"));
170170
}
171171

0 commit comments

Comments
 (0)