zendframework / zend-filter

Filter component from Zend Framework
BSD 3-Clause "New" or "Revised" License
68 stars 35 forks source link

StringPrefix and StringSuffix #28

Closed waltertamboer closed 5 years ago

waltertamboer commented 8 years ago

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

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 commented 6 years ago

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 commented 5 years ago

Fixed with #69