[chronojump] Missing on last commit



commit 21189c6224a7552a2e36ef11015489f111f0f51c
Author: Xavier de Blas <xaviblas gmail com>
Date:   Wed Aug 31 17:43:47 2022 +0200

    Missing on last commit

 src/util.cs | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/src/util.cs b/src/util.cs
index 77123fb35..24d22e7b1 100644
--- a/src/util.cs
+++ b/src/util.cs
@@ -514,6 +514,15 @@ public class Util
                return s;
        }
 
+       public static string RemoveFromChar (string str, char c)
+       {
+               int pos = str.IndexOf(c);
+               if (pos > 0)
+                       return str.Substring(0, pos);
+
+               return str;
+       }
+
        public static string ChangeEqualForColon(string myString) 
        {
                StringBuilder myStringBuilder = new StringBuilder(myString);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]