summaryrefslogtreecommitdiff
path: root/Compiler/CompilerExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Compiler/CompilerExtensions.cs')
-rw-r--r--Compiler/CompilerExtensions.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Compiler/CompilerExtensions.cs b/Compiler/CompilerExtensions.cs
new file mode 100644
index 0000000..f1f0ee6
--- /dev/null
+++ b/Compiler/CompilerExtensions.cs
@@ -0,0 +1,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;
+ }
+} \ No newline at end of file