@locusai/cli 0.17.12 → 0.17.13
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/bin/locus.js +1 -1
- package/package.json +1 -1
package/bin/locus.js
CHANGED
|
@@ -2763,7 +2763,7 @@ function detectImages(input) {
|
|
|
2763
2763
|
continue;
|
|
2764
2764
|
addIfImage(match[1], match[0], detected, byResolved);
|
|
2765
2765
|
}
|
|
2766
|
-
const escapedPattern = /(?:\/|~\/|\.\/)?(?:[^\s"'\\]
|
|
2766
|
+
const escapedPattern = /(?:\/|~\/|\.\/)?(?:[^\s"'\\]|\\ )+\.(?:png|jpg|jpeg|gif|webp|bmp|svg|tiff?)/gi;
|
|
2767
2767
|
for (const match of input.matchAll(escapedPattern)) {
|
|
2768
2768
|
if (!match[0])
|
|
2769
2769
|
continue;
|