Skip to content

Commit e9f1c44

Browse files
committed
minor
1 parent a79b7b2 commit e9f1c44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎v3/js/pytutor.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3721,7 +3721,7 @@ String.prototype.rtrim = function() {
37213721
// also some variable names are like '.0' (for generator expressions),
37223722
// and '.' seems to be illegal.
37233723
//
3724-
// also '!' and '?' are common in Ruby, so escape those as well
3724+
// also '=', '!', and '?' are common in Ruby names, so escape those as well
37253725
//
37263726
// also spaces are illegal, so convert to '_'
37273727
// TODO: what other characters are illegal???
@@ -3735,6 +3735,7 @@ function varnameToCssID(varname) {
37353735
.replace(/[!]/g, '_BANG_')
37363736
.replace(/[?]/g, '_QUES_')
37373737
.replace(/[:]/g, '_COLON_')
3738+
.replace(/[=]/g, '_EQ_')
37383739
.replace(/[.]/g, '_DOT_')
37393740
.replace(/ /g, '_');
37403741
}

0 commit comments

Comments
 (0)