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

StringPrefix and StringSuffix #28

Closed
waltertamboer opened this issue May 17, 2016 · 2 comments
Closed

StringPrefix and StringSuffix #28

waltertamboer opened this issue May 17, 2016 · 2 comments

Comments

@waltertamboer
Copy link

I'd like to propose two new filters which can be used to prefix or suffix a value before it is validated:

  • StringPrefix - Adds a static string to the beginning of the value.
  • StringSuffix - Adds a static string to the end of the value.

This can be useful in cases where an input box statically has a prefix or suffix and you want this value to be in the end-result as well. For example like this:

What do you think?

@thexpand
Copy link
Contributor

thexpand commented Aug 12, 2018

I've created a PR for this. It has both filter with tests added to them.
@froschdesign Can you take a look at it and eventually merge it?

@weierophinney
Copy link
Member

Fixed with #69

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants