We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a50a716 commit 190a897Copy full SHA for 190a897
src/ctree.js
@@ -165,7 +165,7 @@ g/g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g=g\\
165
* @returns {string} The string with colors applied to digits.
166
*/
167
function applyColorsToLights(input) {
168
- 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'
169
return input.replace(regex, (match) => generateColor("O"));
170
}
171
0 commit comments