Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

StringLength: Added length to message variables #78

Conversation

FabianKoestring
Copy link
Contributor

Added the ability to use %length% as an message variable.

I think it is better to show the user how many chars he already typed if a min or max value is set. This is optional but the ability to show the value (length) aims for a better user experience.

For example:
The input is less than %min% characters long. You already typed %length% characters. gets converted to The input is less than 100 characters long. You already typed 99 characters..

@FabianKoestring FabianKoestring changed the title Added length to message variables StringLength: Added length to message variables May 11, 2016
@weierophinney weierophinney added this to the 2.8.0 milestone May 12, 2016
@weierophinney weierophinney self-assigned this May 12, 2016
@vaclavvanik
Copy link

You should add test

@weierophinney weierophinney removed this from the 2.8.0 milestone May 13, 2016
@weierophinney
Copy link
Member

@FabianKoestring Please ping me if/when you have added tests to validate the new behavior, and I'll schedule it for a release.

Thanks!

@FabianKoestring
Copy link
Contributor Author

@weierophinney i added a test case. Is it ok or should i add something else?

@samsonasik
Copy link
Contributor

ping @weierophinney

@FabianKoestring FabianKoestring force-pushed the length-message-variable branch from dbc3d49 to 87f4662 Compare July 1, 2016 12:35
@Xerkus Xerkus changed the base branch from master to develop March 17, 2017 02:48
Xerkus added a commit that referenced this pull request Mar 17, 2017
Xerkus added a commit that referenced this pull request Mar 17, 2017
@Xerkus Xerkus added this to the 2.9.0 milestone Mar 17, 2017
@Xerkus Xerkus closed this Mar 17, 2017
@FabianKoestring FabianKoestring deleted the length-message-variable branch March 17, 2017 07:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants