diff --git a/test/client/js/libs/handlebars/parse.js b/test/client/js/libs/handlebars/parse.js index 10d7eac0..2c08f8f2 100644 --- a/test/client/js/libs/handlebars/parse.js +++ b/test/client/js/libs/handlebars/parse.js @@ -312,7 +312,6 @@ describe("parse Handlebars helper", () => { const testCases = [{ input: "http://example.com/#hash", expected: - "" + "" + "http://example.com/#hash" + "", @@ -333,4 +332,15 @@ describe("parse Handlebars helper", () => { "Channel: ##channel" ); }); + + it("should handle overlapping parts by using first starting", () => { + const input = "#test-https://example.com"; + const actual = parse(input); + + expect(actual).to.equal( + "" + + "#test-https://example.com" + + "" + ); + }); });