MT#17473 fix repeatableJs regex

was matching any character (dot) before

Change-Id: Ia7384f2272fd689a211eb3fce7cbbc5ac64ed3c7
changes/52/4252/3
Gerhard Jungwirth 10 years ago
parent 9527ed94e7
commit b62c3fd4f3

@ -42,7 +42,7 @@ sub render_repeatable_js {
// get the repeatable id
var data_rep_id = \$(this).attr('data-rep-id');
var id_re = new RegExp('\.[0-9]+\.');
var id_re = new RegExp('\\\\.[0-9]+\\\\.');
var data_rep_id_0 = data_rep_id.replace(id_re, '.0.');
// create a regex out of index placeholder

Loading…
Cancel
Save