Skip to content

Commit

Permalink
regex patch
Browse files Browse the repository at this point in the history
  • Loading branch information
magictheegg committed Jan 12, 2025
1 parent 47071fe commit abdbc20
Show file tree
Hide file tree
Showing 1,188 changed files with 4,752 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cards/GSM/10_Frere et Soeur.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/11_H.S.S. Dreadnought.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/12_Imperial Butterfly.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/13_Jolly Drifter.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/14_Relentless Destroyer.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/15_Relentless Galleon.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/16_Royal Patroller.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/17_Sea Devil.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/18_Seaskipper.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/19_Shining Horizon.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/1_Agile Catamaran.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/20_Shipping Schooner.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/21_Skysail Cutter.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/22_Suitor of the Wind.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/23_The Abyssal Pilgrim.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/24_The Blood and the Claw.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/25_The Bones and the Brine.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/26_The Earth and the Sea.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/27_The Fell Reaper.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/28_The Flesh and the Fate.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/29_The Great Maw.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
4 changes: 4 additions & 0 deletions cards/GSM/2_The Ashen Cross.html
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
let pattern1 = /([0-9X]*[WUBRGCT/]+)([ :,\.])/g;
let pattern2 = /(?<![a-z] |\/[0-9X]*)([0-9X]+)([:,])/g;
let pattern3 = /([Pp]ay[s]* )([0-9X])(?! life)/g;
let pattern4 = /([Cc]ost[s]* )([0-9X])/g;
let regexHTML = HTML.replace(pattern1, function (match, group1, group2) {
return symbolize(group1) + group2;
});
Expand All @@ -391,6 +392,9 @@
regexHTML = regexHTML.replace(pattern3, function (match, group1, group2) {
return group1 + symbolize(group2);
});
regexHTML = regexHTML.replace(pattern4, function (match, group1, group2) {
return group1 + symbolize(group2);
});

return regexHTML;
}
Expand Down
Loading

0 comments on commit abdbc20

Please sign in to comment.