Review wording: a fix's fields read as 'fix X › field'
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -167,7 +167,7 @@ def words_for(path, before, after, cfg_before, cfg_after):
|
||||
where = re.sub(r"^hosts\.([a-z0-9_]+)", lambda m: "computer %s" % hosts.get(m.group(1), m.group(1)), where)
|
||||
where = re.sub(r"^fixes\.([A-Za-z0-9_]+)", lambda m: "fix %s" % fixes.get(m.group(1), m.group(1)), where)
|
||||
where = re.sub(r"\.checks\.(\d+)", lambda m: " › check %d" % (int(m.group(1)) + 1), where)
|
||||
where = where.replace("restart_page", "Restart page").replace("auto_fix", "auto-fix").replace("site.", "site › ")
|
||||
where = where.replace("restart_page", "Restart page").replace("auto_fix", "auto-fix").replace("site.", "site › ").replace(".params.", " › ").replace(".params", " › fields")
|
||||
field = path.split(".")[-1].split("[")[0]
|
||||
generic = {f["path"].split(".")[-1]: f for f in schema.F.values()}
|
||||
help_ = (generic.get(field) or {}).get("help", "")
|
||||
|
||||
Reference in New Issue
Block a user