Skip to content

Commit

Permalink
Don't disallow numbers in currency symbols
Browse files Browse the repository at this point in the history
Fixes #356
  • Loading branch information
sindresorhus committed Jun 13, 2018
1 parent 45de9ce commit e6b435b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/renderer/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import MarketmakerSocket from './marketmaker-socket';

const getPort = electron.remote.require('get-port');

const symbolPredicate = ow.string.matches(/^[A-Z]+$/);
const symbolPredicate = ow.string.matches(/^[A-Z\d]+$/);
const uuidPredicate = ow.string.matches(/^[a-z\d]+$/);

const errorWithObject = (message, object) => new Error(`${message}:\n${util.format(object)}`);
Expand Down

0 comments on commit e6b435b

Please sign in to comment.