recma-import-images
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -5,2 +5,3 @@ import { visit } from 'estree-util-visit' | ||
const slugify = slugifyWithCounter() | ||
const EXTERNAL_URL = /^[a-z]+:\/\//i | ||
@@ -28,2 +29,3 @@ export function recmaImportImages() { | ||
let path = srcProp.value.value | ||
if (EXTERNAL_URL.test(path)) return | ||
let name = | ||
@@ -30,0 +32,0 @@ images[path] ?? `${slugify(srcProp.value.value).replace(/-/g, '_')}$recmaImportImages` |
{ | ||
"name": "recma-import-images", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "recma plugin to import image sources", | ||
@@ -5,0 +5,0 @@ "author": "Brad Cornes", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3069
43