mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-09-04 02:37:06 +08:00
Apply suggestions from code review
add tooltips Co-authored-by: Christian Byrne <abolkonsky.rem@gmail.com>
This commit is contained in:
parent
74dd9e13d9
commit
bfe3e356ae
@ -298,6 +298,7 @@ class RegexExtract():
|
|||||||
|
|
||||||
|
|
||||||
class RegexReplace():
|
class RegexReplace():
|
||||||
|
DESCRIPTION = "Find and replace text using regex patterns."
|
||||||
@classmethod
|
@classmethod
|
||||||
def INPUT_TYPES(s):
|
def INPUT_TYPES(s):
|
||||||
return {
|
return {
|
||||||
@ -309,8 +310,8 @@ class RegexReplace():
|
|||||||
"optional": {
|
"optional": {
|
||||||
"case_insensitive": (IO.BOOLEAN, {"default": True}),
|
"case_insensitive": (IO.BOOLEAN, {"default": True}),
|
||||||
"multiline": (IO.BOOLEAN, {"default": False}),
|
"multiline": (IO.BOOLEAN, {"default": False}),
|
||||||
"dotall": (IO.BOOLEAN, {"default": False}),
|
"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."}),
|
||||||
"count": (IO.INT, {"default": 0, "min": 0, "max": 100}),
|
"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."}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user