Skip to content

Commit

Permalink
Clarify replaceSymbols() (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jul 2, 2021
1 parent b314c7b commit 24d48d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ const shouldUseMain = isUnicodeSupported();
const figures = shouldUseMain ? mainSymbols : windowsSymbols;
export default figures;

const isWindowsSymbol = (key, mainSymbol) => figures[key] !== mainSymbol;
const isWindowsSymbol = (key, mainSymbol) => windowsSymbols[key] !== mainSymbol;
const getFigureRegExp = (key, mainSymbol) => [new RegExp(escapeStringRegexp(mainSymbol), 'g'), windowsSymbols[key]];

let replacements = [];
Expand Down

0 comments on commit 24d48d0

Please sign in to comment.