Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tsvetomir committed Jun 6, 2022
1 parent c3e0588 commit dcdd930
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cldr/currency.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export function currencyDisplay(locale, options) {
if (currencyDisplay === SYMBOL) {
result = currencyInfo["symbol-alt-narrow"] || currencyInfo[SYMBOL];
} else {
if (typeof value === undefined || value !== 1) {
if (typeof value === "undefined" || value !== 1) {
result = currencyInfo["displayName-count-other"];
} else {
result = currencyInfo["displayName-count-one"];
Expand Down
2 changes: 1 addition & 1 deletion src/dates/parse-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import datePattern from './date-pattern';
import round from '../common/round';
import isDate from '../common/is-date';

const timeZoneOffsetRegExp = /([+|\-]\d{1,2})(:?)(\d{2})?/;
const timeZoneOffsetRegExp = /([+|-]\d{1,2})(:?)(\d{2})?/;
const dateRegExp = /^\/Date\((.*?)\)\/$/;
const offsetRegExp = /[+-]\d*/;
const numberRegExp = {
Expand Down
2 changes: 1 addition & 1 deletion src/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { EMPTY } from './common/constants';
import isDate from './common/is-date';
import isNumber from './common/is-number';

const formatRegExp = /\{(\d+)(:[^\}]+)?\}/g;
const formatRegExp = /\{(\d+)(:[^}]+)?\}/g;

export function toString(value, format, locale) {
if (format) {
Expand Down
2 changes: 1 addition & 1 deletion src/numbers/custom-number-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const ZERO = "0";

const trailingZerosRegExp = /(\.(?:[0-9]*[1-9])?)0+$/g;
const trailingPointRegExp = /\.$/;
const commaRegExp = /\,/g;
const commaRegExp = /,/g;

function trimTrailingZeros(value, lastZero) {
let trimRegex;
Expand Down
2 changes: 1 addition & 1 deletion src/numbers/parse-number.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import isCurrencyStyle from './is-currency-style';
import formatOptions from './format-options';
import isString from '../common/is-string';

const exponentRegExp = /[eE][\-+]?[0-9]+/;
const exponentRegExp = /[eE][-+]?[0-9]+/;
const nonBreakingSpaceRegExp = /\u00A0/g;

function cleanNegativePattern(number, patterns) {
Expand Down

0 comments on commit dcdd930

Please sign in to comment.