]> git.ipfire.org Git - thirdparty/moment.git/commit
Support "+" / positive sign as well.
authorKshitij Bhardwaj <kshitij.inbox@gmail.com>
Sun, 11 Jun 2017 18:04:21 +0000 (23:34 +0530)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 7 Aug 2017 00:44:48 +0000 (03:44 +0300)
commit279ada1507c06a015e680e2e503c15f2c0c2352c
treef70272728dfc32df698ae5cedef3add657ba38ea
parentfceb92c0e39de35b666eaed665dabb80d6d43f7c
Support "+" / positive sign as well.

Updated regex to support positive sign in addition to a negative sign. The `sign` is assigned a value of 1 if the regex finds "+" in the beginning.
src/lib/duration/create.js