From 7461e766060d198cc3bb5d9031510ac37c4f8e61 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 15 Jul 2020 16:19:30 -0400 Subject: [PATCH] Fix regex for Python 3.7 --- netbox/utilities/testing/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netbox/utilities/testing/views.py b/netbox/utilities/testing/views.py index 6913d6107..98bc8ff02 100644 --- a/netbox/utilities/testing/views.py +++ b/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, }