Skip to content

Commit 951e94d

Browse files
committed
always retain original string, not just on initialization
1 parent c9b258c commit 951e94d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nameparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ def __init__(self, full_name="", constants=CONSTANTS, encoding=ENCODING,
6969

7070
self.ENCODING = encoding
7171
self.string_format = string_format
72-
self.original = full_name
7372
self.full_name = full_name
7473

7574
def __iter__(self):
@@ -307,6 +306,7 @@ def full_name(self):
307306

308307
@full_name.setter
309308
def full_name(self, value):
309+
self.original = value
310310
self._full_name = value
311311
self.parse_full_name()
312312

0 commit comments

Comments
 (0)