Use new string_format.js lib for formatting...more to come!

This commit is contained in:
Bryan Ashby 2016-08-26 21:30:51 -06:00
parent 8002bbe8fe
commit bbba6cd214
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ const getModDatabasePath = require('../core/database.js').getModDatabasePath;
const ViewController = require('../core/view_controller.js').ViewController;
const theme = require('../core/theme.js');
const ansi = require('../core/ansi_term.js');
const stringFormat = require('../core/string_format.js');
// deps
const sqlite3 = require('sqlite3');
@ -145,7 +146,7 @@ function OnelinerzModule(options) {
const tsFormat = config.timestampFormat || 'ddd h:mma';
entriesView.setItems(entries.map( e => {
return listFormat.format( {
return stringFormat(listFormat, {
userId : e.user_id,
username : e.user_name,
oneliner : e.oneliner,