Upstream spencermountain/compromise state of the touched files before 9542b9c97a

This commit is contained in:
upstream committed 2026-10-02 16:52:45 +02:00
1 parent db2bcfe31f
commit 2815d9397a
3 files changed
+269 -2

No files matched your search

@@ -32,8 +32,7 @@ const halfUnits = {
const parseUnit = function (m) {
let unit = m.match('#Duration').text('normal')
// 'weeks', or "a month's time"
unit = unit.replace(/'?s$/, '')
unit = unit.replace(/s$/, '')
// support shorthands like 'min'
if (Object.hasOwn(aliases, unit)) {
unit = aliases[unit]