diff --git a/src/includes/smartsyntax.php b/src/includes/smartsyntax.php index bf8a820..5d718bd 100644 --- a/src/includes/smartsyntax.php +++ b/src/includes/smartsyntax.php @@ -10,6 +10,7 @@ class MTTSmartSyntax implements MTTSmartSyntaxInterface { protected $tagPrefix = '#'; protected $duedatePrefix = '@!'; + protected $weekdays = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; //3-letter not present in lang /** @var MTTSmartSyntaxInterface */ protected static $instance; @@ -102,6 +103,14 @@ class MTTSmartSyntax implements MTTSmartSyntaxInterface break; } } + if (null === $wd) { + foreach ($this->weekdays as $idx => $weekday) { + if ($needle === $weekday) { + $wd = $idx; + break; + } + } + } if (null === $wd) { foreach ($lang->get('days_long') as $idx => $weekday) { if ($needle === mb_strtolower($weekday)) {