aboutsummaryrefslogtreecommitdiff
path: root/src/lexer/trim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer/trim.c')
-rw-r--r--src/lexer/trim.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/lexer/trim.c b/src/lexer/trim.c
index 991cecc..24eb99f 100644
--- a/src/lexer/trim.c
+++ b/src/lexer/trim.c
@@ -6,7 +6,7 @@
/* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/07/16 08:18:36 by nahaddac #+# #+# */
-/* Updated: 2020/09/14 15:40:21 by nahaddac ### ########.fr */
+/* Updated: 2020/09/14 16:23:35 by nahaddac ### ########.fr */
/* */
/* ************************************************************************** */
@@ -43,12 +43,7 @@ int del_quote(char *str)
{
while (str[i++] != '\0')
{
- if (str[i] == '\\' && str[i + 1] == '\'')
- {
- i++;
- break;
- }
- else if (str[i] == '\\')
+ if (str[i] == '\\')
i += 2;
if (str[i] == '\'')
{