mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 05:28:16 -06:00
13983 replace escaped chars
This commit is contained in:
parent
5c0177049b
commit
f509c65f3d
@ -96,6 +96,8 @@ class CustomFieldChoiceSetImportForm(CSVModelForm):
|
||||
for line in self.cleaned_data['extra_choices']:
|
||||
try:
|
||||
value, label = re.split(r'(?<!\\):', line, maxsplit=1)
|
||||
value = value.replace('\\:', ':')
|
||||
label = label.replace('\\:', ':')
|
||||
except ValueError:
|
||||
value, label = line, line
|
||||
data.append((value, label))
|
||||
|
Loading…
Reference in New Issue
Block a user