unprint 0.6.0 → 0.6.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unprint",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Simplify common web scraping tasks while staying in control of the data.",
5
5
  "main": "src/app.js",
6
6
  "scripts": {
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
 
package/tests/index.html CHANGED
@@ -23,6 +23,7 @@
23
23
 
24
24
  <div id="duration">01:15:33</div>
25
25
  <div id="timestamp">PT1H34M18S</div>
26
+ <div id="timestamp">PT34M18S</div>
26
27
 
27
28
  <img class="image" src="https://i.redd.it/vn9h981hlx281.png">
28
29
  <img class="image" src="https://i.redd.it/1s22dsrqy0181.jpg">