make hohoho implementation closer to original vision
This commit is contained in:
parent
970d678c4a
commit
8acfe0e85a
1 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@
|
|||
hocode = hocode.replace(/\-/g, "Hoho");
|
||||
hocode = hocode.replace(/\>/g, "HoHo");
|
||||
hocode = hocode.replace(/\./g, "hoho");
|
||||
hocode = hocode.replace(/(\w{4})/g, '$1! ').replace(/(^\s+|\s+$)/,''); //Space after each set of 4 characters
|
||||
hocode = hocode.replace(/(H[oOh]*)/g, '$1! ').replace(/(^\s+|\s+$)/,''); //Group into Hohoho groups startinh with capital letter
|
||||
}
|
||||
else {
|
||||
var hocode = bfcode.replace(/\+/g, "HoHoHo");
|
||||
|
@ -105,7 +105,7 @@
|
|||
hocode = hocode.replace(/\]/g, "hohoHo");
|
||||
hocode = hocode.replace(/\./g, "hoHoho");
|
||||
hocode = hocode.replace(/\,/g, "HohoHo");
|
||||
hocode = hocode.replace(/(\w{6})/g, '$1! ').replace(/(^\s+|\s+$)/,''); //Space after each set of 6 characters
|
||||
hocode = hocode.replace(/(H[oOh]*)/g, '$1! ').replace(/(^\s+|\s+$)/,''); //Group into Hohoho groups startinh with capital letter
|
||||
}
|
||||
hofield.value = hocode;
|
||||
}
|
||||
|
|
Reference in a new issue