Skip to content

Commit 52a17b5

Browse files
committed
removes redundant escapes
1 parent ad6379c commit 52a17b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/alarms/trade_history.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ async function getTradeHistory(): Promise<{history: TradeHistoryStatus[]; type:
4747
);
4848

4949
if (hasPermissions.granted) {
50-
const webAPIToken = /data-loyalty_webapi_token=\"&quot;([a-zA-Z0-9\_\.-]+)&quot;\"/.exec(body);
50+
const webAPIToken = /data-loyalty_webapi_token="&quot;([a-zA-Z0-9_.-]+)&quot;"/.exec(body);
5151
if (webAPIToken && webAPIToken.length > 1) {
5252
try {
5353
const history = await getTradeHistoryFromAPI(webAPIToken[1]);
@@ -138,7 +138,7 @@ function parseTradeHistoryHTML(body: string): TradeHistoryStatus[] {
138138
});
139139

140140
const matches = body.matchAll(
141-
/HistoryPageCreateItemHover\( \'trade(\d+)_(received|given)item\d+\', 730, \'2\', \'(\d+)\', \'1\' \);/g
141+
/HistoryPageCreateItemHover\( 'trade(\d+)_(received|given)item\d+', 730, '2', '(\d+)', '1' \);/g
142142
);
143143
for (const match of matches) {
144144
const [text, index, type, assetId] = match;

0 commit comments

Comments
 (0)