Skip to content

Commit

Permalink
Merge pull request #93 from coliff/dev/coliff/close-regex-improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
coliff authored May 28, 2024
2 parents fa1a3f8 + 08ed77e commit 672fd82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ async function migrate(cb) {
}),
)
.pipe(
replace(/(<[^>]*class\s*=['"][^'"]*)\bclose\b([^'"]*['"])/g, function (match, p1, p2) {
replace(/(<[^>]*class\s*=\s*['"])\s*\bclose\b\s*(['"])/g, function (match, p1, p2) {
cssClassChanged++;
return p1 + 'btn-close' + p2;
}),
Expand Down

0 comments on commit 672fd82

Please sign in to comment.