mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 20:09:09 +08:00
Fixing that GetAttributeRegex should find attributes with empty value
This commit is contained in:
parent
ff3986eb1f
commit
cfe62f4c21
@ -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>]*)[""']?";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user