Fixing 25454: Exporting translation could end up in infinite loop
[TFS Changeset #65013]
This commit is contained in:
@@ -112,10 +112,8 @@ namespace umbraco.cms.businesslogic.translation
|
||||
tmpStr = tmpStr.Replace("\n", " ");
|
||||
tmpStr = tmpStr.Replace("\r", " ");
|
||||
|
||||
while (tmpStr.IndexOf(" ") != -1)
|
||||
tmpStr = tmpStr.Replace(" ", " ");
|
||||
|
||||
return tmpStr.Split(' ').Length;
|
||||
MatchCollection collection = Regex.Matches(tmpStr, @"[\S]+");
|
||||
return collection.Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user