Avoid escaping quotes whenever possible (again)
Oops, I forgot to rebase and fix after merging a previous PR. I wish there was a way to enforce this with ESLint, but did not find any (only allow) :(
This commit is contained in:
parent
c9da29f2fc
commit
03d6bf06ee
@ -249,7 +249,7 @@ describe("parse Handlebars helper", () => {
|
|||||||
input: "test, MaxLeiter",
|
input: "test, MaxLeiter",
|
||||||
expected:
|
expected:
|
||||||
"test, " +
|
"test, " +
|
||||||
"<span role=\"button\" class=\"user color-12\" data-name=\"MaxLeiter\">" +
|
'<span role="button" class="user color-12" data-name="MaxLeiter">' +
|
||||||
"MaxLeiter" +
|
"MaxLeiter" +
|
||||||
"</span>",
|
"</span>",
|
||||||
}];
|
}];
|
||||||
@ -265,7 +265,7 @@ describe("parse Handlebars helper", () => {
|
|||||||
users: ["MaxLeiter, test"],
|
users: ["MaxLeiter, test"],
|
||||||
input: "#test-channelMaxLeiter",
|
input: "#test-channelMaxLeiter",
|
||||||
expected:
|
expected:
|
||||||
"<span class=\"inline-channel\" role=\"button\" tabindex=\"0\" data-chan=\"#test-channelMaxLeiter\">" +
|
'<span class="inline-channel" role="button" tabindex="0" data-chan="#test-channelMaxLeiter">' +
|
||||||
"#test-channelMaxLeiter" +
|
"#test-channelMaxLeiter" +
|
||||||
"</span>",
|
"</span>",
|
||||||
},
|
},
|
||||||
@ -273,7 +273,7 @@ describe("parse Handlebars helper", () => {
|
|||||||
users: ["MaxLeiter, test"],
|
users: ["MaxLeiter, test"],
|
||||||
input: "https://www.MaxLeiter.com/test",
|
input: "https://www.MaxLeiter.com/test",
|
||||||
expected:
|
expected:
|
||||||
"<a href=\"https://www.MaxLeiter.com/test\" target=\"_blank\" rel=\"noopener\">" +
|
'<a href="https://www.MaxLeiter.com/test" target="_blank" rel="noopener">' +
|
||||||
"https://www.MaxLeiter.com/test" +
|
"https://www.MaxLeiter.com/test" +
|
||||||
"</a>",
|
"</a>",
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user