Skip to content

Commit

Permalink
Yet another attempt to fix | spinners, this time by replacing | by ;.
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Jun 21, 2024
1 parent 6ca7d68 commit 8bd8a5c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions scripts/inj.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ window.fetch = async (...args) => {
fixed++;
}

// Any variation with a :, | or ) without a space after will crash, ensure : always has a space after.
newValue = variation.dimensions[key].replace(/([:)|])([^\s])/g, "$1 $2");
// Any variation with a : or ) without a space after will crash, ensure : always has a space after.
newValue = variation.dimensions[key].replace(/([:)])([^\s])/g, "$1 $2");
if (newValue !== variation.dimensions[key]) {
variation.dimensions[key] = newValue;
fixed++;
Expand All @@ -136,6 +136,14 @@ window.fetch = async (...args) => {
variation.dimensions[key] = newValue;
fixed++;
}

// Any variation with a | by ;.
newValue = variation.dimensions[key].replace(/([|])/g, ";");
if (newValue !== variation.dimensions[key]) {
variation.dimensions[key] = newValue;
fixed++;
}

//variation.dimensions[key] = fixed++ + "test | test| test |test#";
}

Expand Down

0 comments on commit 8bd8a5c

Please sign in to comment.