update doc/mjwarp/update_types.py

PiperOrigin-RevId: 966037324
Change-Id: Iabc84fe3a871d6fdf8b6619ee048ac0273462d55
This commit is contained in:
Taylor Howell
2026-08-17 10:06:40 -07:00
committed by Copybara-Service
parent 26aaeb035f
commit 8847823721
+1 -1
View File
@@ -68,7 +68,7 @@ def process_file(filepath):
print(f'Error: Could not find {filepath}', file=sys.stderr)
return
new_content = re.sub(r'array\(([^)]+)\)', replace_array_calls, content)
new_content = re.sub(r'(?<!\.)\barray\(([^)]+)\)', replace_array_calls, content)
with open(filepath, 'w') as f:
f.write(new_content)