mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 00:40:23 +01:00
Merge remote-tracking branch 'origin/develop' into activitypub
This commit is contained in:
@@ -33,6 +33,7 @@ module.exports = function (utils, Benchpress, relative_path) {
|
||||
shouldHideReplyContainer,
|
||||
humanReadableNumber,
|
||||
formattedNumber,
|
||||
txEscape,
|
||||
generatePlaceholderWave,
|
||||
register,
|
||||
__escape: identity,
|
||||
@@ -376,6 +377,10 @@ module.exports = function (utils, Benchpress, relative_path) {
|
||||
return utils.addCommas(number);
|
||||
}
|
||||
|
||||
function txEscape(text) {
|
||||
return String(text).replace(/%/g, '%').replace(/,/g, ',');
|
||||
}
|
||||
|
||||
function generatePlaceholderWave(items) {
|
||||
const html = items.map((i) => {
|
||||
if (i === 'divider') {
|
||||
|
||||
Reference in New Issue
Block a user