]> git.ipfire.org Git - thirdparty/moment.git/commit
[bugfix] Fix humanize api fix-humanize-args 5477/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 30 Apr 2020 20:04:06 +0000 (23:04 +0300)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 30 Apr 2020 20:08:17 +0000 (23:08 +0300)
commite6e6deb3a65444ab4496dec03396c67481d57ab1
tree5367976c65ad198c9c6a3c0c72b53769943d87ce
parent535a72572cbdb3a1473914931e9352adc6a5ad24
[bugfix] Fix humanize api

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