Please define the behaviour of non-matching parseTags
User Guide says:
app.parseTags(tags): string Parses the specified string for tags and returns the result.
so one can only guess the result of non-match is empty string.
Thanks.
app.parseTags(tags): string Parses the specified string for tags and returns the result.
so one can only guess the result of non-match is empty string.
Thanks.
Reply to #1:
It's an empty string unless it somehow generates a parse error.
It's an empty string unless it somehow generates a parse error.
Reply to #2:
Thanks but sorry if I was unclear. Mine was a request to the developer to define the behaviour. Currently the behaviour is undefined hence risky.
Thanks but sorry if I was unclear. Mine was a request to the developer to define the behaviour. Currently the behaviour is undefined hence risky.
Reply to #3:
No, you posted on the forum which is where users try to help other users. Contact Kim at the "Support" link above.
No, you posted on the forum which is where users try to help other users. Contact Kim at the "Support" link above.
Reply to #4:
Thanks. I see nothing suggesting Devs don't read this forum. I will do as you suggest.
Thanks. I see nothing suggesting Devs don't read this forum. I will do as you suggest.
Reply to #1:
You can test it out like this:
app.log(app.parseTags(''));
The result is an empty string
If you give it an invalid tag, the result is still an empty string:
app.log(app.parseTags('<sdlck>'));
If you give it no value at all, the result will be undefined
app.log(app.parseTags());
You can test it out like this:
app.log(app.parseTags(''));
The result is an empty string
If you give it an invalid tag, the result is still an empty string:
app.log(app.parseTags('<sdlck>'));
If you give it no value at all, the result will be undefined
app.log(app.parseTags());
Reply to #6:
Thanks. But:
If you give it an invalid tag, the result is still an empty string:
app.log(app.parseTags('<sdlck>'));
is undefined behaviour. My suggestion is that this remedied by the User Guide.
Sorry to have been insufficiently clear.
Thanks. But:
If you give it an invalid tag, the result is still an empty string:
app.log(app.parseTags('<sdlck>'));
is undefined behaviour. My suggestion is that this remedied by the User Guide.
Sorry to have been insufficiently clear.
Reply to #7:
I don't know what else it should do besides returning an empty string. It is the only logical result in my opinion. It works exactly the same as the New Name method.
I don't know what else it should do besides returning an empty string. It is the only logical result in my opinion. It works exactly the same as the New Name method.
Reply to #8:
Returning an empty string is fine.
All that's needed is the User Guide make this defined behaviour. Then scripts will be able to rely on it.
Returning an empty string is fine.
All that's needed is the User Guide make this defined behaviour. Then scripts will be able to rely on it.