Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
90d7b29c
Unverified
Commit
90d7b29c
authored
Jan 24, 2019
by
mrbean-bremen
Browse files
Handle apostrophes in IDs with url
- this kind of IDs caused a crash before - fixes #345
parent
a66ddb60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/SvgElementIdManager.cs
View file @
90d7b29c
...
...
@@ -27,6 +27,11 @@ namespace Svg
{
id
=
id
.
Substring
(
4
);
id
=
id
.
TrimEnd
(
')'
);
if
(
id
.
StartsWith
(
"\""
))
{
id
=
id
.
Substring
(
1
);
id
=
id
.
TrimEnd
(
'\"'
);
}
}
if
(
id
.
StartsWith
(
"#"
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment