Explorar el Código

Fix regex for Python 3.7

Jeremy Stretch hace 5 años
padre
commit
7461e76606
Se han modificado 1 ficheros con 1 adiciones y 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,
         }