Created on 12 October 2024, 2 months ago

Problem/Motivation

There are cases when you want to know the length (or size) of a token's result, rather than the token's result itself. For example: To test for a non-zero string length of a token where that token may include inconvenient characters (like ' or ").

In such cases it would be useful to be able to replace the token with the strlen() of the token, rather than deal with whatever token happens to contain.

Proposed resolution

See attached PlugIn for this module, which does this.

For an example, consider the token:
[some:interesting:object]
the token modifier that uses this plugin would be:
[token-modifier:stringlength:some:interesting:object]

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom kmv

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kmv
  • Status changed to Closed: won't fix 6 days ago
  • 🇬🇧United Kingdom jofitz

    Thanks for the plugin, @kmv.

    I don't think there will be a enough need for this modifier but I will link to this issue from the project page so people can find the code if they need to.

Production build 0.71.5 2024