Skip to content

Commit bf4291b

Browse files
authored
feat(globals): Support new s/S timestamp styles (#1418)
1 parent 4237b1a commit bf4291b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

deno/globals.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

globals.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export const FormattingPatterns = {
7676
*
7777
* The `timestamp` and `style` group properties are present on the `exec` result of this expression
7878
*/
79-
// eslint-disable-next-line prefer-named-capture-group
80-
Timestamp: /<t:(?<timestamp>-?\d{1,13})(:(?<style>[DFRTdft]))?>/,
79+
// eslint-disable-next-line prefer-named-capture-group, unicorn/better-regex
80+
Timestamp: /<t:(?<timestamp>-?\d{1,13})(:(?<style>[DFRSTdfst]))?>/,
8181
/**
8282
* Regular expression for matching strictly default styled timestamps
8383
*

0 commit comments

Comments
 (0)