Skip to content

Commit af322a6

Browse files
authored
fix(editor): Make "Z" suffix optional in date token of the custom Monaco log language definition (fixes #149). (#153)
1 parent b15d9e0 commit af322a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Editor/MonacoInstance/language.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const setupCustomLogLanguage = () => {
3333
TOKEN_NAME.CUSTOM_FATAL,
3434
],
3535
[
36-
/(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})Z/,
36+
/(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})Z?/,
3737
TOKEN_NAME.CUSTOM_DATE,
3838
],
3939
[

0 commit comments

Comments
 (0)