Skip to content

Commit

Permalink
number_format
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Dec 15, 2022
1 parent 9e2f02f commit cd0d11a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/helper/number_format.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface Options {
delimiter?: string;
separator?: string;
precision?: number | string;
precision?: number;
}

function numberFormatHelper(num: number, options: Options = {}) {
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/tag/include_code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export = ctx => function includeCodeTag(args) {

return exists(src).then(exist => {
if (exist) return readFile(src);
}).then(code => {
}).then((code: string) => {
if (!code) return;

const lines = code.split('\n');
Expand Down
2 changes: 1 addition & 1 deletion lib/theme/processors/source.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Pattern} from 'hexo-util';
import common from '../../plugins/processor/common';
import * as common from '../../plugins/processor/common';

export function process(file) {
const Asset = this.model('Asset');
Expand Down

0 comments on commit cd0d11a

Please sign in to comment.