mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-24 08:46:48 +08:00
Fixing that GetAttributeRegex should find attributes with empty value
This commit is contained in:
@@ -193,6 +193,6 @@ namespace Orchard.MediaProcessing.Filters {
|
||||
}
|
||||
}
|
||||
|
||||
private string GetAttributeRegex(string attributeName) => $@"\b{attributeName}\s*=\s*[""']?([^""'\s>]+)[""']?";
|
||||
private string GetAttributeRegex(string attributeName) => $@"\b{attributeName}\s*=\s*[""']?([^""'\s>]*)[""']?";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user