gscan 5.2.2 → 5.2.4

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.
Files changed (2) hide show
  1. package/lib/specs/v1.js +1 -1
  2. package/package.json +1 -1
package/lib/specs/v1.js CHANGED
@@ -491,7 +491,7 @@ rules = {
491
491
  rule: 'Assets such as CSS & JS must use the <code>{{asset}}</code> helper',
492
492
  details: oneLineTrim`The listed files should be included using the <code>{{asset}}</code> helper.<br>
493
493
  For more information, please see the <a href="${docsBaseUrl}helpers/asset/" target=_blank><code>{{asset}}</code> helper documentation</a>.`,
494
- regex: /(src|href)=['"](.*?\/assets\/.*?)['"]/gmi
494
+ regex: /(src|href)=['"](?!https?:\/\/|\/\/)(.*?\/assets\/.*?)['"]/gmi
495
495
  },
496
496
  'GS030-ASSET-SYM': {
497
497
  level: 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gscan",
3
- "version": "5.2.2",
3
+ "version": "5.2.4",
4
4
  "description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
5
5
  "keywords": [
6
6
  "ghost",