File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 27
27
steps :
28
28
- uses : actions/checkout@v3
29
29
- uses : ./.github/actions/install-deps
30
- - run : pnpm run build
30
+ - run : pnpm build
31
31
- name : Install, build, and upload your site
32
32
uses : withastro/action@v2
33
33
with :
Original file line number Diff line number Diff line change @@ -155,15 +155,18 @@ export function testImgToStr(testImage: Bitmap) {
155
155
unknownColorMap [ c ] = color ;
156
156
} ) ;
157
157
158
- const lines = [ ] ;
158
+ const lines : string [ ] = [ ] ;
159
159
160
160
for ( let y = 0 ; y < testImage . height ; y ++ ) {
161
- lines [ y ] = "" ;
161
+ let line = "" ;
162
+
162
163
for ( let x = 0 ; x < w ; x ++ ) {
163
164
const cell = testImage . data . readUInt32BE ( 4 * ( y * w + x ) ) ! ;
164
165
const k = colors2 [ cell ] || unknownColorMap [ cell ] || "?" ;
165
- lines [ y ] += k ;
166
+ line += k ;
166
167
}
168
+
169
+ lines [ y ] = line ;
167
170
}
168
171
169
172
return lines . join ( "\n" ) ;
You can’t perform that action at this time.
0 commit comments