Skip to content

Commit 36db5cc

Browse files
committed
fix: handle percent signs in tabular sheet names
1 parent cc404f0 commit 36db5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mfr/extensions/tabular/templates/viewer.mako

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
3434
for (var sheetName in sheets){
3535
var sheet = sheets[sheetName];
36-
sheetName = sheetName.replace( /(:|\.|\[|\]|,|@|&|\ |'|")/g, '_' ); //Handle characters that can't be in DOM ID's
36+
sheetName = sheetName.replace( /(:|\.|\[|\]|,|@|&|\ |'|"|%)/g, '_' ); //Handle characters that can't be in DOM ID's
3737
$("#tabular-tabs").append('<li role="presentation" style="display:inline-block; float: none;"><a id="' + sheetName + '" aria-controls="' + sheetName + '" role="tab" data-toggle="tab">'+ sheetName + '</a></li>');
3838
gridArr[sheetName] = [sheet[0], sheet[1]];
3939

0 commit comments

Comments
 (0)