Apply suggestions from code review

add tooltips

Co-authored-by: Christian Byrne <abolkonsky.rem@gmail.com>
This commit is contained in:
JettHu 2025-05-30 14:57:43 +08:00 committed by GitHub
parent 74dd9e13d9
commit bfe3e356ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."}),
} }
} }