You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/spec/linkify/core/parser-test.js
+17-4Lines changed: 17 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ var tests = [
37
37
],[
38
38
'This [i.imgur.com/ckSj2Ba.jpg)] should also work',
39
39
[TEXT,URL,TEXT],
40
-
['This [','i.imgur.com/ckSj2Ba.jpg)]',' should also work']
40
+
['This [','i.imgur.com/ckSj2Ba.jpg',')] should also work']
41
41
],[
42
42
'A link is http://nick.is.awesome/?q=nick+amazing&nick=yo%29%30hellp another is http://nick.con/?q=look',
43
43
[TEXT,URL,TEXT],
@@ -118,6 +118,18 @@ var tests = [
118
118
'Bu haritanın verileri Direniş İzleme Grubu\'nun yaptığı Türkiye İşçi Eylemleri haritası ile birleşebilir esasen. https://graphcommons.com/graphs/00af1cd8-5a67-40b1-86e5-32beae436f7c?show=Comments',
119
119
[TEXT,URL],
120
120
['Bu haritanın verileri Direniş İzleme Grubu\'nun yaptığı Türkiye İşçi Eylemleri haritası ile birleşebilir esasen. ','https://graphcommons.com/graphs/00af1cd8-5a67-40b1-86e5-32beae436f7c?show=Comments']
121
+
],[
122
+
'Links with brackets and parens https://en.wikipedia.org/wiki/Blur_[band] wat',
123
+
[TEXT,URL,TEXT],
124
+
['Links with brackets and parens ','https://en.wikipedia.org/wiki/Blur_[band]',' wat'],
125
+
],[
126
+
'This has dots {https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx}',
127
+
[TEXT,URL,TEXT],
128
+
['This has dots {','https://msdn.microsoft.com/en-us/library/aa752574(VS.85).aspx','}']
129
+
],[// This test is correct, will count nested brackets as being part of the first
130
+
'A really funky one (example.com/?id=asd2{hellow}and%20it%20continues(23&((@)) and it ends',
131
+
[TEXT,URL,TEXT],
132
+
['A really funky one (','example.com/?id=asd2{hellow}and%20it%20continues(23&((@)',') and it ends']
121
133
]
122
134
];
123
135
@@ -131,13 +143,14 @@ describe('linkify/core/parser#run()', function () {
0 commit comments