Skip to content

Commit c79dbac

Browse files
committed
1.0.14 Bugfix: Ignore case on whitelisted tags.
1 parent 4973df9 commit c79dbac

File tree

4 files changed

+312
-312
lines changed

4 files changed

+312
-312
lines changed

fire/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ To open the reported post on it's site:
5959

6060
|1.0 ||
6161
| --- |---
62+
|1.0.14 |Bugfix: Ignore case on whitelisted tags.
6263
|1.0.13 |Fixing "Decorate existing messages" for FireFox
6364
|1.0.12 |Reducing the max size of a rendered image.
6465
|1.0.11 |Bugfix: `decorateExistingMessages` timing.

fire/fire.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @description FIRE adds a button to SmokeDetector reports that allows you to provide feedback & flag, all from chat.
55
// @author Cerbrus
66
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
7-
// @version 1.0.13
7+
// @version 1.0.14
88
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.meta.js
99
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.user.js
1010
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues

fire/fire.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @description FIRE adds a button to SmokeDetector reports that allows you to provide feedback & flag, all from chat.
55
// @author Cerbrus
66
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
7-
// @version 1.0.13
7+
// @version 1.0.14
88
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.meta.js
99
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.user.js
1010
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
@@ -1105,7 +1105,7 @@
11051105
const reportBody = $('<div/>')
11061106
.text(d.body) // Escape everything.
11071107
.html() // Get the escaped HTML, unescape whitelisted tags.
1108-
.replace(/&lt;(\/?([abpsu]|[hb]r|[uo]l|li|h\d|code|pre|strong|em|img).*?)&gt;/g, '<$1>');
1108+
.replace(/&lt;(\/?([abpsu]|[hb]r|[uo]l|li|h\d|code|pre|strong|em|img).*?)&gt;/gi, '<$1>');
11091109

11101110
const userName = `${d.username}<span class="fire-user-reputation"></span>`;
11111111

0 commit comments

Comments
 (0)