2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: removes duplicate “ and adds ‘ and ’ (#11010)

This commit is contained in:
Joffrey JAFFEUX 2020-10-23 10:35:43 +02:00 committed by GitHub
parent 68fc2a18b1
commit b6492356cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ function addLocalDate(buffer, matches, state) {
countdown: null,
};
const matchString = matches[1].replace(/„|“|«|»|“|”/g, '"');
const matchString = matches[1].replace(/||„|“|«|»|”/g, '"');
let parsed = parseBBCodeTag(
"[date date" + matchString + "]",