Are quotes necessary for aliases?

Things I have tried

aliases: [202108211628]

doesn’t work, but

aliases: ["202108211628"]

does.

What I’m trying to do

I’m trying to create an alias.

If quotation marks are necessary, someone should update the documentation Add aliases to note.

See this:

1 Like

I see. Numbers are the exceptions. They still need to update the documentation then.

Well, it seems then that the alias has to be string (makes sense!), which is processed differently from a number.

There is another reason why I always use quotes when giving an alias in square brackets: When the alias contains commas, it will split up if not in quotes, like so:

If I’m not mistaken,
aliases: [one, two, three]
gives these three aliases: „one“, „ two“, and „ three“,
whereas
aliases: [“one, two, three”]
gives just one alias, viz. “one, two, three”

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.