From ab10903637ceacb95fb47003ca512925b8d7faa3 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sat, 5 Oct 2019 13:10:15 +0200 Subject: Fix tests --- src/Lang/Cpp/CppParser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Lang/Cpp/CppParser.ts') diff --git a/src/Lang/Cpp/CppParser.ts b/src/Lang/Cpp/CppParser.ts index 35066fe..35f551c 100644 --- a/src/Lang/Cpp/CppParser.ts +++ b/src/Lang/Cpp/CppParser.ts @@ -430,7 +430,7 @@ export default class CppParser implements ICodeParser { logicalLine.replace(/\*\//g, ""); } - return logicalLine.trim(); + return logicalLine.replace(/^\s+|\s+$/g, ""); } throw new Error("More than " + linesToGet + " lines were read from editor and no end of expression was found."); -- cgit v1.2.3