Node.js based forum software built for the modern web
feat: add isNumber to client-side helpers
Julian Lam172aabcb57aa
diff --git a/public/src/modules/helpers.common.js b/public/src/modules/helpers.common.jsindex 6df32ea76e..aa1825adda 100644--- a/public/src/modules/helpers.common.js+++ b/public/src/modules/helpers.common.js@@ -35,6 +35,7 @@ module.exports = function (utils, Benchpress, relative_path) {shouldHideReplyContainer,humanReadableNumber,formattedNumber,+ isNumber,txEscape,uploadBasename,generatePlaceholderWave,@@ -386,6 +387,10 @@ module.exports = function (utils, Benchpress, relative_path) {return utils.addCommas(number);}+ function isNumber(value) {+ return utils.isNumber(value);+ }+function txEscape(text) {return String(text).replace(/%/g, '%').replace(/,/g, ',');}