@metascraper/helpers 5.58.13 → 5.59.3

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
@@ -2,7 +2,7 @@
2
2
  "name": "@metascraper/helpers",
3
3
  "description": "Shared helper utilities used across metascraper rules for parsing and normalizing metadata.",
4
4
  "homepage": "https://github.com/microlinkhq/metascraper/packages/metascraper-helpers",
5
- "version": "5.58.13",
5
+ "version": "5.59.3",
6
6
  "main": "src/index.js",
7
7
  "author": {
8
8
  "email": "hello@microlink.io",
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "62841e86839aa2a9ae0dee7316c2b01982b9836d"
78
+ "gitHead": "aa2f5c54d37d63962f75366e897ca461c6bb18be"
79
79
  }
package/src/index.js CHANGED
@@ -106,7 +106,7 @@ const EXTENSIONS = {
106
106
 
107
107
  const REGEX_BY = /^[\s\n]*by[\s\n]+|@[\s\n]*/i
108
108
 
109
- const REGEX_LOCATION = /^[A-Z\s]+\s+[-—–]\s+/
109
+ const REGEX_LOCATION = /^[A-Z\s]+\s[-—–]\s/
110
110
 
111
111
  const REGEX_TITLE_SEPARATOR = /^[^|\-/•—]+/
112
112
 
package/src/url-regex.js CHANGED
@@ -29,7 +29,7 @@ const PROTOCOL = '(?:(?:[a-z]+:)?//)?'
29
29
  const PORT = '(?::\\d{2,5})?'
30
30
 
31
31
  const pathPattern = ({ parens }) => {
32
- const disallowed = parens ? '\\s"\'' : '\\s"\\)\''
32
+ const disallowed = parens ? '\\s"' : '\\s"\\)\''
33
33
  return `(?:(?:[/?#][^${disallowed}]*[^${disallowed}.?!])|[/])?`
34
34
  }
35
35