[BUG] Pasting the name of a custom script in the Script Configuration

I took a quick peruse around and didn't see this as previously reported.

Ignition 8.1.45

I was converting a message handler to a custom script as it didn't need to be a message handler so I copied over the code and then copied the name and I noticed it didn't rename the function. Instead it left it as def (self):

If you hit okay or apply it does indeed apply the name, but interesting that I have never noticed it before. :man_shrugging:

Can you expand a little more on what you did?

I did some exploratory stuff around copy/pasting and I couldn't get it to break (because of that) though I did notice one bug that could lead to this state:
If you clear out the name text field, any new name you enter is not used in the script editor until you type a second character, despite the single character name being fine/valid.