From 617697755802bb5aaabcf0f82c703eefaf4686d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Estev=C3=A3o=20Soares=20dos=20Santos?= Date: Tue, 14 Jul 2015 00:37:53 +0100 Subject: [PATCH] fix(subParser/tables): fix undefined error in malformed tables Cannot read property 'trim' of undefined happens when the parser is fed a malformed table. This happens in live previews (for instance, when using Angularjs). --- dist/showdown.js | Bin 63926 -> 63946 bytes dist/showdown.js.map | Bin 207301 -> 206231 bytes dist/showdown.min.js | Bin 22509 -> 22515 bytes dist/showdown.min.js.map | Bin 25145 -> 25157 bytes src/subParsers/tables.js | 4 ++-- 5 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/showdown.js b/dist/showdown.js index c0b42863414c6e9b1fffb6c7192057be91e13a21..3fcd8016acdc66dc22ab826431fe59e54944477b 100644 GIT binary patch delta 62 zcmdn?nfcUbW&vw`Ek%XmjQsMH{PH{nLz9gH-Osrci%TkVQWa`y6eeGIQ8QWm#ZDxl K%@w=lGc$%AFI>xh#4Si9Aju2 zN<^eZl_oXuaz_5^L|0U4Nt7-t*;=*xu*Hj-N>#OuYL9M{qN076w5+MfI{PY$|B=WR5l$aR9;sDPqC@PDLbClnGV8XH zz5_aaIHK;AE&9m9h|a@SsYvjkq8tn!P?Q6~DBW1Ig^mwVn8a#~kdp)>>8sO`mBmuH za06ABuv=phZUyKE$OEQQBuYJs(!)-gBhZva0g`n}L{<#-O`DwrwVQd2g69}Bv_SS( z$VE(g5&Hj$tdRO1GD2q@*-5TiA{|eO1Q19eHBhK;F7&W+f3BR1$7}fIOu0t2%U;PB4hz5(e*Zcnm5%XwCEaxV2uS5$Vl7(5(tu-gTb?~SDf_5`Lk<&*E>4+ITHn2 z`~=mJh5JPmg%{2v%GTeTNnccirC0Nv%w9GU(|cyJa#+XfJleIXGrZ0ud)-c!j_a(W zkuBTsf0ha7*j<@?S`zJlQ`;d7N1=0-4hc<|68AHgoi@WDNO1IHRL1Fl6tW+qF#nlh zKdWd*Bu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T_fT*X92Lqxscv~9ld%6=H-CNqmd6SvRzdp2m z!QB=TQblab=JuIVaX8%0UHEQ56i$>tP6qrmAbdvMYu|kA>7@ayl?au>m6nj8r=Q?f gTu~ximb8i1*0s4!+m4e|WL>PqTXN=lR0_@}6(LKUWBQJ4x1fxf+`GN=jDh3dJRr hIjOcv>e|WL>PqU9*ZZeHRHb59l?qa|**stmI{=8q9;5&O diff --git a/dist/showdown.min.js.map b/dist/showdown.min.js.map index 549457e351b3f2b3569f7975c138517a8b6cc40d..abfea652620715e675f2fd359029cb37825ae477 100644 GIT binary patch delta 137 zcmdmagz@MR#trwvt-Y&UvVC-19X;F~b=(~t4V-km9UZfr9DzcPzWPo&{*LZpI^m9v niP}yep+Fr^N4Fv;pi)nd$-)s0R&K5q?m!+H+BYAMDB=VFC=MsY delta 125 zcmX?lgmLE)#trwvP2H