pythongosssss / ComfyUI-Custom-Scripts

Enhancements & experiments for ComfyUI, mostly focusing on UI features
MIT License
1.38k stars 104 forks source link

Regex Quantifier {} not working in String Function node #211

Closed UrzasLegacy closed 3 months ago

UrzasLegacy commented 3 months ago

image

Expected behavior: Appending {4} should match the previous token exactly 4 times.

Actual behavior: Curly braces are just ignored completely :(

P.S. I love your addon! <3

P.P.S. r"(........................................................................................................................................................................................................[\s,])(.*)" is my workaround for now in case anyone else runs into this :P

pythongosssss commented 3 months ago

This should be fixed