Ver Fonte

Adjust RCG regex

ghorsington há 3 anos atrás
pai
commit
d07fda7fd8
1 ficheiros alterados com 1 adições e 1 exclusões
  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;