-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cleanupIds): handle no-uri-encoded references (#1982)
- Loading branch information
1 parent
888d078
commit 89b0c6c
Showing
2 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Should handle non-ASCII IDs and resolve not correctly URI encoded references. | ||
|
||
See: https://github.com/svg/svgo/issues/1981 | ||
|
||
=== | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<defs> | ||
<linearGradient id="渐变_1" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop stop-color="#5a2100" /> | ||
</linearGradient> | ||
</defs> | ||
<rect x="30" y="30" height="150" width="370" fill="url(#渐变_1)" /> | ||
</svg> | ||
|
||
@@@ | ||
|
||
<svg xmlns="http://www.w3.org/2000/svg"> | ||
<defs> | ||
<linearGradient id="a" x1="0%" y1="0%" x2="100%" y2="0%"> | ||
<stop stop-color="#5a2100"/> | ||
</linearGradient> | ||
</defs> | ||
<rect x="30" y="30" height="150" width="370" fill="url(#a)"/> | ||
</svg> |