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.
- package/lib/specs/v1.js +1 -1
- 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',
|