Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Snippet with a name containing only space characters lets the custom function fail #818

@maninweb

Description

@maninweb

Hi there,

I am running Script Lab 1.1.0 from the store in Excel Insider (10211.20004) in a Windows 10 VM. I noticed, that a snippet containing only space characters lets the custom function fail.

I followed the steps for adding a custom function. It then looks like the following screenshot and all fine.

image

Then, created a second snippet, where I changed the custom function name to add20. But in this case I gave the snippet a name including only one or two space characters.

image

In the functions pane, the custom function is shown with two dots, as the spaces are trimmed out.

image

Trying to execute the add20 function then leads to some errors in the console.

image

Yes, using spaces only for a snippet name does not really make sense, but I think a warning to the user when the snippet name only contains space characters would be useful and therefore would like to suggest a such feature.

Best,
Mourad

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions