From 3e6c3ee653bbd8b0f9627c3db2033c39dc0a2d30 Mon Sep 17 00:00:00 2001 From: Sebastian Pahnke Date: Mon, 1 Oct 2018 08:29:37 +0200 Subject: [PATCH] Allow the 's' flag in regular expressions --- src/typescript/typescript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typescript/typescript.ts b/src/typescript/typescript.ts index d22920e4..09441e69 100644 --- a/src/typescript/typescript.ts +++ b/src/typescript/typescript.ts @@ -130,7 +130,7 @@ export const language = { { include: '@whitespace' }, // regular expression: ensure it is terminated before beginning (otherwise it is an opeator) - [/\/(?=([^\\\/]|\\.)+\/([gimuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/, { token: 'regexp', bracket: '@open', next: '@regexp' }], + [/\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/, { token: 'regexp', bracket: '@open', next: '@regexp' }], // delimiters and operators [/[()\[\]]/, '@brackets'],