z3c.pt uses this regexp to validate path expressions:
path_regex = re.compile(
This means that a segment of the path cannot start with a digit. That was supported in the reference implementation. (I have a template called 40years.pt and used to be able to use its macros, but cannot with chameleon.)
Interesting, because that regex comes from zope.tales.
Really? I don't see it there.
Hmmm... maybe not, hehe. But did I write that long regex? Time flies, I guess.
I committed a fix (r128467). What's the best way to write a test for it?
For a minute there, I thought: hey, that's an SVN revision..
The tests in z3c.pt have always been against regressions and somewhat ad-hoc, so I have just adapted an existing test to whatever situation came up.
But in the case of regular expressions such as this one, I think a doctest in the class is great, and straight-forward to add.
Seems this was already fixed years ago so we can close the issue here.