download
raw
395 Bytes
let Value = require('../value')
class ImageSet extends Value {
/**
* Use non-standard name for WebKit and Firefox
*/
replace(string, prefix) {
let fixed = super.replace(string, prefix)
if (prefix === '-webkit-') {
fixed = fixed.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi, 'url($1)$2')
}
return fixed
}
}
ImageSet.names = ['image-set']
module.exports = ImageSet

Xet Storage Details

Size:
395 Bytes
·
Xet hash:
6791b662d215845974c75645d71e2d7432889fcfd5894a2f9826c2bb2266e4d5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.