update doc/mjwarp/update_types.py
PiperOrigin-RevId: 966037324 Change-Id: Iabc84fe3a871d6fdf8b6619ee048ac0273462d55
This commit is contained in:
committed by
Copybara-Service
parent
26aaeb035f
commit
8847823721
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user