Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a3a74c

Browse files
committed
Build: fix size comparison for slim files when the branch is dirty
Refgh-5440
1 parentae7f613 commit8a3a74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎build/tasks/compare_size.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export async function compareSize( { cache = ".sizecache.json", files } = {} ) {
109109
// Remove the short SHA and .dirty from comparisons.
110110
// The short SHA so commits can be compared against each other
111111
// and .dirty to compare with the existing branch during development.
112-
constsha=/jQueryv\d+.\d+.\d+(?:-\w+)?(?:\+|\+slim\.)?([^\.]+(?:\.dirty)?)?/.exec(contents)[1];
112+
constsha=/jQueryv\d+.\d+.\d+(?:-\w+)?(?:\+slim\.|\+)?([^\.]+(?:\.dirty)?)?/.exec(contents)[1];
113113
contents=contents.replace(newRegExp(sha,"g"),"");
114114

115115
constsize=Buffer.byteLength(contents,"utf8");

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp