Explorar o código

Adjust RCG regex

ghorsington %!s(int64=3) %!d(string=hai) anos
pai
achega
d07fda7fd8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bot/src/plugins/rcg.ts

+ 1 - 1
bot/src/plugins/rcg.ts

@@ -5,7 +5,7 @@ import { Command, ICommandData, Plugin } from "src/model/plugin";
 import { tryDo } from "@shared/common/async_utils";
 import Jimp from "jimp";
 
-const rcgRe = /<div class="rcg-panels">\s*<img src="([^"]*)" .*\/>\s*<img src="([^"]*)" .*\/>\s*<img src="([^"]*)" .*\/>\s*<\/div>/gi;
+const rcgRe = /<div class="rcg-panels">\s*<img src="([^"]*)" .*\/>\s*<img src="([^"]*)" .*\/>\s*<img src="([^"]*)" .*\/>\s*<\/div>/i;
 
 interface XkcdResponse {
     img: string;