Download node_modules/autoprefixer/lib/hacks/image-set.js from jayvatliq/car-view-classifier-frontend: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/jayvatliq/car-view-classifier-frontend/resolve/main/node_modules/autoprefixer/lib/hacks/image-set.js
- Command line
-
hf download hf://spaces/jayvatliq/car-view-classifier-frontend/node_modules/autoprefixer/lib/hacks/image-set.js
-
curl -L -o image-set.js https://huggingface.co/spaces/jayvatliq/car-view-classifier-frontend/resolve/main/node_modules/autoprefixer/lib/hacks/image-set.js
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 | |