@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.cjs.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)
|
|
@@ -458,7 +458,7 @@ var Duration = function (_TemporalAmount) {
|
|
|
458
458
|
};
|
|
459
459
|
Duration.parse = function parse(text) {
|
|
460
460
|
requireNonNull(text, 'text');
|
|
461
|
-
var PATTERN = new RegExp('([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)
|
|
461
|
+
var PATTERN = new RegExp('^([-+]?)P(?:([-+]?[0-9]+)D)?(T(?:([-+]?[0-9]+)H)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)(?:[.,]([0-9]{0,9}))?S)?)?$', 'i');
|
|
462
462
|
var matches = PATTERN.exec(text);
|
|
463
463
|
if (matches !== null) {
|
|
464
464
|
if ('T' === matches[3] === false) {
|
|
@@ -1673,7 +1673,7 @@ function _init$i() {
|
|
|
1673
1673
|
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];
|
|
1674
1674
|
}
|
|
1675
1675
|
|
|
1676
|
-
var PATTERN =
|
|
1676
|
+
var PATTERN = /^([-+]?)P(?:([-+]?[0-9]+)Y)?(?:([-+]?[0-9]+)M)?(?:([-+]?[0-9]+)W)?(?:([-+]?[0-9]+)D)?$/i;
|
|
1677
1677
|
var Period = function (_TemporalAmount) {
|
|
1678
1678
|
function Period(years, months, days) {
|
|
1679
1679
|
var _this;
|