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