Skip to content

Commit 3333d2a

Browse files
committed
format source
1 parent bedc55e commit 3333d2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulp.d/tasks/build-preview-pages.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ function registerIconDefs (iconDefs, file) {
233233
iconNames = JSON.parse(contents.match(/\biconNames: *(\[.*?\])/)[1].replace(/'/g, '"'))
234234
} catch (e) {}
235235
} else if (contents.includes('<i class="fa')) {
236-
iconNames = contents.toString().match(/<i class="fa[brs]? fa-[^" ]+/g).map((it) => it.substr(10))
236+
iconNames = contents
237+
.toString()
238+
.match(/<i class="fa[brs]? fa-[^" ]+/g)
239+
.map((it) => it.substr(10))
237240
}
238241
if (!iconNames.length) return
239242
;[...new Set(iconNames)].reduce((accum, iconKey) => {

0 commit comments

Comments
 (0)