Excessive Dashes :) - Ideas & Feature Requests - Ideas & Feature Requests - Progress Community
 Ideas & Feature Requests

Excessive Dashes :)

  • Excessive Dashes :)
  • So if my item is "Hello - There.pdf" when uploaded the URL is (by default) "hello---there.pdf"

    Could you perhaps filter out the redundant dashes?...or give me the option in settings to do that?
  • Hi Steve,

    Unfortunately I don't believe there is a way to easily modify this behaviour. If you can manage to do that then the C# code to remove repeated dashes is rather simple:

    var reducedString = Regex.Replace(inputString, "-+", "-");
    var finalString = reducedString.Trim('-');

    All the best,
    Lubomir Velkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>