Skip to content

Commit

Permalink
Merge pull request #174 from evolvingweb/fix-drupal-preset
Browse files Browse the repository at this point in the history
Fixing drupal preset to prevent errors.
  • Loading branch information
kirk-brown-ew authored Sep 7, 2023
2 parents 30032d4 + 9507002 commit acb8acf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sitediff/presets/drupal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ sanitization:
selector: script
pattern: '(src="[^"]*/files/js/js_)[-\w]{40,43}\.js"'
substitute: '\1DRUPAL_AGGREGATED_JS.js"'
- title: Strip CSS/JS cache IDs
selector: style, script
pattern: '("[^"]*\.(js|css))\?[a-z0-9]{6}"'
substitute: '\1'
# - title: Strip CSS/JS cache IDs
# selector: style, script
# pattern: '("[^"]*\.(js|css))\?[a-z0-9]{6}"'
# substitute: '\1'
- title: Strip Drupal JS version tags
selector: script
pattern: '(src="[^"]*/misc/\w+\.js)?v=\d+\.\d+"'
Expand Down

0 comments on commit acb8acf

Please sign in to comment.