Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

fix bug: matching scripts in htmlmined html file #620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fileprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var chalk = require('chalk');
var _defaultPatterns = {
html: [
[
/<script.+src=['"]([^"']+)["']/gm,
/<script[^\>]+src=['"]([^"']+)["']/gm,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could possibly also be:

<script[^>]+?src=['"]([^"']+)["']

'Update the HTML to reference our concat/min/revved script files'
],
[
Expand Down