On 05/06/2011 03:13 PM, no-re...@cfengine.com wrote:

> Can anyone explain why "#.*" caused problems in 3.1.5 and why changing it to 
> "#[^\n]*" fixed the problems?  I thought a "." represented any character 
> except a new line character and was the same thing as "[^\n]".

I have made this change (commit r2234) in 3.1.5 in order to fix issue
573 (https://cfengine.com/bugtracker/view.php?id=573)

Sorry for not noticing that it could have unexpected consequences and
not mentioning it in changelog.

Basically, since r2234 '.' matches newlines, so the only regexps that
need changes are those which operate on multiline strings. Anything
class-related should be safe, as newlines are not allowed in a class name.
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to