From e504f6437e785e4ee1520ef18ab8a2a18cfa89cc Mon Sep 17 00:00:00 2001 From: Noam Afergan <134402149+NApenguin@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:24:08 +0300 Subject: [PATCH] Improve 'SkipSpaces' function flow --- SRC/Aura_OS/System/Parser/NanoXMLParser.cs | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/SRC/Aura_OS/System/Parser/NanoXMLParser.cs b/SRC/Aura_OS/System/Parser/NanoXMLParser.cs index c3e0b7a6..523cd9df 100644 --- a/SRC/Aura_OS/System/Parser/NanoXMLParser.cs +++ b/SRC/Aura_OS/System/Parser/NanoXMLParser.cs @@ -15,24 +15,19 @@ protected static bool IsSpace(char c) protected static void SkipSpaces(string str, ref int i) { - while (i < str.Length) - { - if (!IsSpace(str[i])) + for(; i < str.Length; i++) + { + if(!IsSpace(str[i]) && str.Length < i + 4 && str.Substring(i, i + 4).Equals("