mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-19 14:32:37 +08:00
Duplicate asset usage descriptions in search results page are now omitted (i.e. "[Usage information][Usage information] Some asset" becomes "[Usage information] Some asset")
This commit is contained in:
@@ -924,7 +924,11 @@ namespace AssetUsageDetectorNamespace
|
||||
if( !string.IsNullOrEmpty( description ) )
|
||||
{
|
||||
if( !string.IsNullOrEmpty( links[i].description ) )
|
||||
links[i] = new Link( links[i].targetNode, string.Concat( links[i].description, Environment.NewLine, description ) );
|
||||
{
|
||||
// Avoid duplicate descriptions
|
||||
if( !links[i].description.Contains( description ) )
|
||||
links[i] = new Link( links[i].targetNode, string.Concat( links[i].description, Environment.NewLine, description ) );
|
||||
}
|
||||
else
|
||||
links[i] = new Link( links[i].targetNode, description );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user