Hi all,

I just got a report, that build 25212 is causing an exception:

'Variable length lookbehind not implemented in regex' .....

Investigation has shown that this happens only with perl version before 
perl 5.30.0 - so, if you are using perl version 5.30.0 or higher - you 
don't have to worry about!

assp build 25212 uses the following part in regexes at several places

(?<=\A|\n)any content

which means: is the 'a' in 'any' preceded by the start of the string or a 
newline character (do not capture nor count the match)

For me this looked like a fixed length of 1 character (which would be 
supported by all perl versions 5.10 and higher) - but I was wrong: the \A 
is zero width, the \n is one char - so the length is "variable" and
this is not supported before perl 5.30

I found a solution that will work with all assp supported perl versions - 
testing  as much as possible perl versions will take some hours.
The regex is splitted into two fixed length lookbehind pattern:

(?:(?<=\A)|(?<=\n))any content

If the changed regex part works with all perl versions, I'll publish the 
fix in build 25213 tomorrow

For those of you, who are using perl versions before 5.30 - please be 
patent and stay at version 2.8.2 build 25192 until tomorrow.

I'm sorry if anyone was running in to trouble because of my stupidness.

Thank you

Thomas

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to