Skip to content

Commit 39f1cdb

Browse files
committed
style: Remove useless escape
1 parent 554890e commit 39f1cdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ export const svgToUri = (svg) => {
123123
var source = serializer.serializeToString(svg);
124124

125125
// Add namespace.
126-
if(!source.match(/^<svg[^>]+xmlns="http\:\/\/www\.w3\.org\/2000\/svg"/)){
126+
if(!source.match(/^<svg[^>]+xmlns="http:\/\/www\.w3\.org\/2000\/svg"/)){
127127
source = source.replace(/^<svg/, '<svg xmlns="http://www.w3.org/2000/svg"');
128128
}
129-
if(!source.match(/^<svg[^>]+"http\:\/\/www\.w3\.org\/1999\/xlink"/)){
129+
if(!source.match(/^<svg[^>]+"http:\/\/www\.w3\.org\/1999\/xlink"/)){
130130
source = source.replace(/^<svg/, '<svg xmlns:xlink="http://www.w3.org/1999/xlink"');
131131
}
132132

0 commit comments

Comments
 (0)