Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Support/Support.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function formatMoney(number) {
let str = Math.round(number) + '';

if (str.length > 3) {
str = str.substr(0, str.length - 3) + ',' + str.substr(-3);
str = str.slice(0, -3) + ',' + str.slice(-3);
}
return str;
}
Expand Down
2 changes: 1 addition & 1 deletion src/remark-plugins/remark-custom-asides/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function customAsides(
if (!textNode) return;

// looking for mapping in the beginning
const className = mapping[textNode.substr(0, 2)];
const className = mapping[textNode.slice(0, 2)];
// >This is a joke <- ignore this
// >T hi there
const hasPostfixWhitespace = textNode.indexOf(' ') === 2;
Expand Down