diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2021-08-11 11:30:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-11 11:30:59 +0300 |
commit | 976173fd4952bd4328d995a253d97cccbd7bcf96 (patch) | |
tree | 664456b43a67383c6afff39fae235e1c93e1dcbb /Duplicati/Library | |
parent | 265d202a1f99f12f7c5bcf8b9e0deac50ac799c3 (diff) | |
parent | a58f6b5d693bdadabe4211e499d6b6f42ee01d1e (diff) |
Merge pull request #4512 from warwickmm/make_filters_match_newline
Make dot in filter regex match newline characters
Diffstat (limited to 'Duplicati/Library')
-rw-r--r-- | Duplicati/Library/Utility/FilterExpression.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Duplicati/Library/Utility/FilterExpression.cs b/Duplicati/Library/Utility/FilterExpression.cs index fc4eb1745..60ca22588 100644 --- a/Duplicati/Library/Utility/FilterExpression.cs +++ b/Duplicati/Library/Utility/FilterExpression.cs @@ -81,14 +81,15 @@ namespace Duplicati.Library.Utility /// The multiple wildcard character (DOS style)
/// </summary>
private const char MULTIPLE_WILDCARD = '*';
-
+
/// <summary>
/// The regular expression flags
/// </summary>
private static readonly RegexOptions REGEXP_OPTIONS =
RegexOptions.Compiled |
RegexOptions.ExplicitCapture |
- (Utility.IsFSCaseSensitive ? RegexOptions.None : RegexOptions.IgnoreCase);
+ (Utility.IsFSCaseSensitive ? RegexOptions.None : RegexOptions.IgnoreCase) |
+ RegexOptions.Singleline;
// Since we might need to get the regex for a particular filter group multiple times
// (e.g., when combining multiple FilterExpressions together, which discards the existing FilterEntries and recreates them from the Filter representations),
|