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 1b3ba3d commit 5f3c3c4Copy full SHA for 5f3c3c4
extraction_methods/plugins/regex_rename.py
@@ -47,7 +47,7 @@ class RegexRenameInput(Input):
47
regex_swaps: list[RegexOutputKey] = Field(
48
description="Regex and output key combinations.",
49
)
50
- nest_delimiter: str = Field(
+ delimiter: str = Field(
51
default="",
52
description="delimiter for nested term.",
53
@@ -128,12 +128,12 @@ def rename(
128
def run(self, body: dict[str, Any]) -> dict[str, Any]:
129
130
for swap in self.input.regex_swaps:
131
- nest = (
+ key_parts = (
132
swap.regex.split(self.input.delimiter)
133
if self.input.delimiter
134
else [swap.regex]
135
136
137
- body = self.rename(body, nest, swap.output_key)
+ body = self.rename(body, key_parts, swap.output_key)
138
139
return body
0 commit comments