Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
swaroopg92 committed Aug 16, 2024
1 parent 63a05cd commit b950401
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions docs/js/class_p.js
Original file line number Diff line number Diff line change
Expand Up @@ -1861,12 +1861,8 @@ class Puzzle {
text += this.__export_checker_shared();

// Custom Answer Message
if (this.solution) {
let custom_message = document.getElementById("custom_message").value;
text += "\n" + custom_message.replace(/\n/g, '%2D').replace(/,/g, '%2C').replace(/&/g, '%2E').replace(/=/g, '%2F');
} else {
text += "\n" + false;
}
let custom_message = document.getElementById("custom_message").value;
text += "\n" + custom_message.replace(/\n/g, '%2D').replace(/,/g, '%2C').replace(/&/g, '%2E').replace(/=/g, '%2F');

for (var i = 0; i < this.replace.length; i++) {
text = text.split(this.replace[i][0]).join(this.replace[i][1]);
Expand Down
6 changes: 3 additions & 3 deletions docs/js/translate.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ function trans() {
"sub_number1_lb": ["通常", "Normal"],
"sub_number2_lb": ["矢印", "Arrow"],
"sub_number9_lb": ["", ""],
"sub_number10_lb": ["大", "Big"],
"sub_number6_lb": ["中", "Middle"],
"sub_number5_lb": ["小", "Small"],
"sub_number10_lb": ["大", "L"],
"sub_number6_lb": ["中", "M"],
"sub_number5_lb": ["小", "S"],
"sub_number8_lb": ["長文", "Long"],
"sub_number7_lb": ["候補", "Candidates"],
"sub_cage2_lb": ["自由", "Free"],
Expand Down

0 comments on commit b950401

Please sign in to comment.