@js-joda/core 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/js-joda.cjs.js +3 -3
- package/dist/js-joda.cjs.js.map +1 -1
- package/dist/js-joda.esm.js +3 -3
- package/dist/js-joda.esm.js.map +1 -1
- package/dist/js-joda.js +3 -3
- package/dist/js-joda.js.map +1 -1
- package/dist/js-joda.min.js +2 -2
- package/package.json +3 -3
- package/src/Duration.js +1 -1
- package/src/Period.js +1 -1
package/dist/js-joda.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//! @version @js-joda/core - 6.3.
|
|
1
|
+
//! @version @js-joda/core - 6.3.2
|
|
2
2
|
//! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
|
|
3
3
|
//! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
|
|
4
4
|
//! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
@@ -456,7 +456,7 @@ var Duration = function (_TemporalAmount) {
|
|
|
456
456
|
};
|
|
457
457
|
Duration.parse = function parse(text) {
|
|
458
458
|
requireNonNull(text, 'text');
|
|
459
|
-
var PATTERN = new RegExp('([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)
|
|
459
|
+
var PATTERN = new RegExp('^([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?$', 'i');
|
|
460
460
|
var matches = PATTERN.exec(text);
|
|
461
461
|
if (matches !== null) {
|
|
462
462
|
if ('T' === matches[3] === false) {
|
|
@@ -1671,7 +1671,7 @@ function _init$i() {
|
|
|
1671
1671
|
MONTHS = [Month.JANUARY, Month.FEBRUARY, Month.MARCH, Month.APRIL, Month.MAY, Month.JUNE, Month.JULY, Month.AUGUST, Month.SEPTEMBER, Month.OCTOBER, Month.NOVEMBER, Month.DECEMBER];
|
|
1672
1672
|
}
|
|
1673
1673
|
|
|
1674
|
-
var PATTERN =
|
|
1674
|
+
var PATTERN = /^([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?$/i;
|
|
1675
1675
|
var Period = function (_TemporalAmount) {
|
|
1676
1676
|
function Period(years, months, days) {
|
|
1677
1677
|
var _this;
|