summaryrefslogtreecommitdiff
path: root/Compiler/CompilerExtensions.cs
blob: f1f0ee6c8d6e6a8672b6dba2a5cc6ec7744ce458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
namespace Q1.Compiler;

public static class CompilerExtensions
{
    public static string TrimStart(this string source, string search)
    {
        if (source.StartsWith(search))
            return source[search.Length..];

        return source;
    }
}