2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-08 15:54:09 +00:00

Utils: fix comments in encodeSVGforURL

This commit is contained in:
Vjacheslav Trushkin 2022-05-01 09:04:54 +03:00
parent e2d56ce62b
commit 8c8aa34d53

View File

@ -3,10 +3,6 @@
* *
* Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating * Short alternative to encodeURIComponent() that encodes only stuff used in SVG, generating
* smaller code. * smaller code.
*
* If icon is not optimised, run trimSVG() before this function to get rid of new lines.
* This function is intended to be used with Iconify icon sets, which are already optimised
* and do not contain new lines.
*/ */
export function encodeSVGforURL(svg: string): string { export function encodeSVGforURL(svg: string): string {
return ( return (