unprint 0.6.0 → 0.6.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/package.json +1 -1
- package/src/app.js +2 -0
- package/tests/index.html +1 -0
package/package.json
CHANGED
package/src/app.js
CHANGED
|
@@ -446,6 +446,7 @@ function extractDuration(durationString, match) {
|
|
|
446
446
|
|
|
447
447
|
return null;
|
|
448
448
|
}
|
|
449
|
+
|
|
449
450
|
function extractTimestamp(durationString) {
|
|
450
451
|
const timestampMatch = durationString.match(/(\d+H)?\s*(\d+M)?\s*\d+S?/i);
|
|
451
452
|
|
|
@@ -683,6 +684,7 @@ module.exports = {
|
|
|
683
684
|
initAll,
|
|
684
685
|
extractDate,
|
|
685
686
|
extractDuration,
|
|
687
|
+
extractTimestamp,
|
|
686
688
|
options: configure,
|
|
687
689
|
query: initQueryFns(queryFns),
|
|
688
690
|
};
|
package/tests/index.html
CHANGED