]> git.ipfire.org Git - thirdparty/moment.git/commit
[bugfix] Fix humanize api (#5477)
authorIskren Ivov Chernev <iskren.chernev@gmail.com>
Thu, 30 Apr 2020 20:09:42 +0000 (23:09 +0300)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2020 20:09:42 +0000 (23:09 +0300)
commit5a87154a7c257e7e26dd32935655548329d718c0
tree5367976c65ad198c9c6a3c0c72b53769943d87ce
parent535a72572cbdb3a1473914931e9352adc6a5ad24
[bugfix] Fix humanize api (#5477)

Humanize API was changed in PR 4296 to support an options argument which
contained both suffix and thresholds. No other moment API contains such
an options object. So this change just splits suffix and thresholds into
two different arguments, allowing for arbitrary order.
src/lib/duration/humanize.js
src/test/moment/duration.js