diff --git a/CoreFunctions.js b/CoreFunctions.js index 96c4d507d..f0ef14882 100644 --- a/CoreFunctions.js +++ b/CoreFunctions.js @@ -1271,7 +1271,7 @@ function inject_sidebar_send_to_gamelog_button(sidebarPaneContent) { // make sure the button grabs dynamically. Don't hold HTML in the button click block because clicking on items back to back will fuck that up let sidebar = sidebarPaneContent.closest(".ct-sidebar__portal"); - let toInject = $(`
`); + let toInject = $(`
`); toInject.attr("class", sidebarPaneContent.attr("class")); // set the class on our new element // required toInject.append(sidebar.find(".ct-sidebar__header").clone()); diff --git a/Journal.js b/Journal.js index 08d3233f8..0e902d554 100644 --- a/Journal.js +++ b/Journal.js @@ -1354,6 +1354,8 @@ class JournalManager{ // replace all "to hit" and "damage" rolls let currentElement = $(target).clone() + const dashToMinus = /([\s>])−(\d)/gi + // apply most specific regex first matching all possible ways to write a dice notation // to account for all the nuances of DNDB dice notation. @@ -1370,6 +1372,7 @@ class JournalManager{ const actionType = "roll" const rollType = "AboveVTT" const updated = currentElement.html() + .replaceAll(dashToMinus, `$1-$2`) .replaceAll(damageRollRegexBracket, ``) .replaceAll(damageRollRegex, `$1$5`) .replaceAll(hitRollRegexBracket, ``) diff --git a/MessageBroker.js b/MessageBroker.js index 15d024467..b0e68bb10 100644 --- a/MessageBroker.js +++ b/MessageBroker.js @@ -1608,7 +1608,7 @@ class MessageBroker { //Security logic to prevent content being sent which can execute JavaScript. data.player = DOMPurify.sanitize( data.player,{ALLOWED_TAGS: []}); data.img = DOMPurify.sanitize( data.img,{ALLOWED_TAGS: []}); - data.text = DOMPurify.sanitize( data.text,{ALLOWED_TAGS: ['video','img','div','p', 'b', 'button', 'span', 'style', 'path', 'svg', 'a', 'hr', 'ul', 'li', 'h3', 'h2', 'h4', 'h1'], ADD_ATTR: ['target']}); //This array needs to include all HTML elements the extension sends via chat. + data.text = DOMPurify.sanitize( data.text,{ALLOWED_TAGS: ['video','img','div','p', 'b', 'button', 'span', 'style', 'path', 'svg', 'a', 'hr', 'ul', 'li', 'h3', 'h2', 'h4', 'h1', 'table', 'tr', 'td', 'th'], ADD_ATTR: ['target']}); //This array needs to include all HTML elements the extension sends via chat. if(data.dmonly && !(window.DM) && !local) // /dmroll only for DM of or the user who initiated it return $("
"); diff --git a/abovevtt.css b/abovevtt.css index c21009d83..d2897b1cd 100644 --- a/abovevtt.css +++ b/abovevtt.css @@ -10636,7 +10636,12 @@ div#playlistFields { display: flex; gap: 10px } - +.glc-game-log .stat-block .stats{ + flex-direction:column; +} +.glc-game-log .stat-block .stats>table{ + margin:0px; +} .stat-block .stats+p { margin-top: 10px }