ソースを参照

Fix regex for Python 3.7

Jeremy Stretch 5 年 前
コミット
7461e76606
1 ファイル変更1 行追加1 行削除
  1. 1 1
      netbox/utilities/testing/views.py

+ 1 - 1
netbox/utilities/testing/views.py

@@ -891,7 +891,7 @@ class ViewTestCases:
         Rename multiple instances.
         """
         rename_data = {
-            'find': '(.*)',
+            'find': '^(.*)$',
             'replace': '\\1X',  # Append an X to the original value
             'use_regex': True,
         }