From f0d39959a054d740cdae1b5107a998ab97fa986b Mon Sep 17 00:00:00 2001 From: Lorenzo Fiorini <64514862+LorenFiorini@users.noreply.github.com> Date: Wed, 1 Jun 2022 13:07:42 +0200 Subject: [PATCH] Update header.ts I was given a very long email address. It doesn't fit within the 80 characters' limit. I am not the only one having this problem. Please push this change to Main so that the new students @student.42heilbronn.de can see their full address --- src/header.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/header.ts b/src/header.ts index 05c7c5b..550c9f6 100644 --- a/src/header.ts +++ b/src/header.ts @@ -24,17 +24,17 @@ export type HeaderInfo = { * Template where each field name is prefixed by $ and is padded with _ */ const genericTemplate = ` -******************************************************************************** -* * -* ::: :::::::: * -* $FILENAME__________________________________ :+: :+: :+: * -* +:+ +:+ +:+ * -* By: $AUTHOR________________________________ +#+ +:+ +#+ * -* +#+#+#+#+#+ +#+ * -* Created: $CREATEDAT_________ by $CREATEDBY_ #+# #+# * -* Updated: $UPDATEDAT_________ by $UPDATEDBY_ ### ########.fr * -* * -******************************************************************************** +************************************************************************************* +* * +* ::: :::::::: * +* $FILENAME_______________________________________ :+: :+: :+: * +* +:+ +:+ +:+ * +* By: $AUTHOR_____________________________________ +#+ +:+ +#+ * +* +#+#+#+#+#+ +#+ * +* Created: $CREATEDAT_________ by $CREATEDBY______ #+# #+# * +* Updated: $UPDATEDAT_________ by $UPDATEDBY______ ### ########.fr * +* * +************************************************************************************* `.substring(1) @@ -79,7 +79,7 @@ export const supportsLanguage = (languageId: string) => * Returns current header text if present at top of document */ export const extractHeader = (text: string): string | null => { - const headerRegex = `^(.{80}(\r\n|\n)){10}` + const headerRegex = `^(.{85}(\r\n|\n)){10}` const match = text.match(headerRegex) return match ? match[0].split('\r\n').join('\n') : null