change quote regex, dont log and change target styling to highlight OPs

merge-requests/208/head
fatchan 5 years ago
parent 8ce5aa292c
commit 345f948136
  1. 3
      helpers/quotes.js
  2. 3
      static/css/style.css

@ -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;

@ -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;
}

Loading…
Cancel
Save