From 345f948136cb168ada36a29c27344d02c92e6cee Mon Sep 17 00:00:00 2001 From: fatchan Date: Sun, 14 Apr 2019 13:53:41 +0000 Subject: [PATCH] change quote regex, dont log and change target styling to highlight OPs --- helpers/quotes.js | 3 +-- static/css/style.css | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/quotes.js b/helpers/quotes.js index 0d022ddf..0d6786aa 100644 --- a/helpers/quotes.js +++ b/helpers/quotes.js @@ -1,7 +1,7 @@ 'use strict'; const Posts = require(__dirname+'/../db-models/posts.js') - , quoteRegex = /^>>\d+/gm; + , quoteRegex = />>\d+/gm; module.exports = async (board, text) => { @@ -26,7 +26,6 @@ module.exports = async (board, text) => { validQuotes++; } - console.log(validQuotes); //if none of the quotes were real, dont do a replace if (validQuotes === 0) { return text; diff --git a/static/css/style.css b/static/css/style.css index 5160b871..0b04cbdc 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -52,6 +52,7 @@ object { box-shadow: 0 0 3px black; min-width: 64px; min-height: 64px; + object-fit: cover; } .catalog { @@ -210,7 +211,7 @@ input textarea { } .post-container:target, .op:target { - background-color: #d6bad0; + background-color: #d6bad0!important; border-color: #ba9dbf; }