Upstream spencermountain/compromise state of the touched files before 9542b9c97a
This commit is contained in:
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]
|
||||
|
||||
Reference in new issue
Block a user