Explorar o código

Fix regex for Python 3.7

Jeremy Stretch %!s(int64=5) %!d(string=hai) anos
pai
achega
7461e76606
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,
         }