[TYPO3-team-core-v5] Character problem in Cache Framework

Steffen Kamper info at sk-typo3.de
Tue Mar 31 09:53:51 CEST 2009


Hi,

Martin Kutschker schrieb:
> Steffen Kamper schrieb:
>> Hi Robert,
>>
>> i've seen that you extended the reg.expression for the Tags.
>>
>> /^[a-zA-Z0-9_%\-&]{1,250}$/
>>
>> the slash could be omitted with the - at beginning or end
>>
>> '/^[a-zA-Z0-9_%&-]{1,250}$/
>>
>> may be it raises the readability.
> 
> If you allow @ instead of using it as the separator for the file cache
> you could also use email addresses as tags. And if you allow dots you
> also allow domain names.
> 
> How about # as separator? As the slash and the question mark don't work
> well on the file system the # won't be needed for URLs.
> 
> Masi

i also thought about a better SEPARATOR.
Why not using something like ':::' ? In the v4 the SEPARATOR is only 
used for exploding the pattern, so this 3char-string would work as well, 
and there is no conflict with any possible single char.

vg Steffen


More information about the TYPO3-team-core-v5 mailing list