Browse Source

Adjust RCG regex

ghorsington 3 years ago
parent
commit
d07fda7fd8
1 changed files with 1 additions and 1 deletions
  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;