Download wp-calypso/client/lib/css-safe-url/test/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 199 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/css-safe-url/test/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/css-safe-url/test/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/css-safe-url/test/index.js
199 Bytes
| import cssSafeUrl from '../'; | |
| describe( 'css-safe-url', () => { | |
| test( 'should escape parens', () => { | |
| expect( cssSafeUrl( 'http://foo.com/()/' ) ).toEqual( 'http://foo.com/\\(\\)/' ); | |
| } ); | |
| } ); | |