Skip to content

Commit bfe3e35

Browse files
Apply suggestions from code review
add tooltips Co-authored-by: Christian Byrne <abolkonsky.rem@gmail.com>
1 parent 74dd9e1 commit bfe3e35

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

comfy_extras/nodes_string.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ def execute(self, string, regex_pattern, mode, case_insensitive, multiline, dota
298298

299299

300300
class RegexReplace():
301+
DESCRIPTION = "Find and replace text using regex patterns."
301302
@classmethod
302303
def INPUT_TYPES(s):
303304
return {
@@ -309,8 +310,8 @@ def INPUT_TYPES(s):
309310
"optional": {
310311
"case_insensitive": (IO.BOOLEAN, {"default": True}),
311312
"multiline": (IO.BOOLEAN, {"default": False}),
312-
"dotall": (IO.BOOLEAN, {"default": False}),
313-
"count": (IO.INT, {"default": 0, "min": 0, "max": 100}),
313+
"dotall": (IO.BOOLEAN, {"default": False, "tooltip": "When enabled, the dot (.) character will match any character including newline characters. When disabled, dots won't match newlines."}),
314+
"count": (IO.INT, {"default": 0, "min": 0, "max": 100, "tooltip": "Maximum number of replacements to make. Set to 0 to replace all occurrences (default). Set to 1 to replace only the first match, 2 for the first two matches, etc."}),
314315
}
315316
}
316317

0 commit comments

Comments
 (0)