Skip to content

Commit

Permalink
chore: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ClarkXia committed Mar 27, 2023
1 parent 626611e commit 73da98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/style-unit/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const _convertUnit = cached((value, prop, platform) => {

const REG_BASE64 = /data:image\/(png|jpg|jpeg|gif|svg|webp|bmp|dpg);base64,/;
function isBase64(str) {
// Maximal base64 string start with `url('data:image/jpeg;base64,` with contains 30 characters.
// Maximal base64 string start with `url('data:image/jpeg;base64,` which contains 30 characters.
return typeof str === 'string' && REG_BASE64.test(str.substring(0, 30));
}

Expand Down

0 comments on commit 73da98c

Please sign in to comment.