diff --git a/web/regex_demo.html b/web/regex_demo.html index c15fff6..4acfae4 100644 --- a/web/regex_demo.html +++ b/web/regex_demo.html @@ -123,8 +123,9 @@ sub newsamp { $samp->insertBefore($addsamp->parent); sample_init($samp); update(); + return $samp; } -$addsamp->click(sub { newsamp() }); +$addsamp->click(sub { newsamp('')->click }); our $re_debug=0; my $ta_debugout = $jq->('#debugout');