Skip to content

Commit dcdd930

Browse files
committed
refactor: lint
1 parent c3e0588 commit dcdd930

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/cldr/currency.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export function currencyDisplay(locale, options) {
114114
if (currencyDisplay === SYMBOL) {
115115
result = currencyInfo["symbol-alt-narrow"] || currencyInfo[SYMBOL];
116116
} else {
117-
if (typeof value === undefined || value !== 1) {
117+
if (typeof value === "undefined" || value !== 1) {
118118
result = currencyInfo["displayName-count-other"];
119119
} else {
120120
result = currencyInfo["displayName-count-one"];

src/dates/parse-date.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import datePattern from './date-pattern';
77
import round from '../common/round';
88
import isDate from '../common/is-date';
99

10-
const timeZoneOffsetRegExp = /([+|\-]\d{1,2})(:?)(\d{2})?/;
10+
const timeZoneOffsetRegExp = /([+|-]\d{1,2})(:?)(\d{2})?/;
1111
const dateRegExp = /^\/Date\((.*?)\)\/$/;
1212
const offsetRegExp = /[+-]\d*/;
1313
const numberRegExp = {

src/format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EMPTY } from './common/constants';
44
import isDate from './common/is-date';
55
import isNumber from './common/is-number';
66

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

99
export function toString(value, format, locale) {
1010
if (format) {

src/numbers/custom-number-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const ZERO = "0";
99

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

1414
function trimTrailingZeros(value, lastZero) {
1515
let trimRegex;

src/numbers/parse-number.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import isCurrencyStyle from './is-currency-style';
66
import formatOptions from './format-options';
77
import isString from '../common/is-string';
88

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

1212
function cleanNegativePattern(number, patterns) {

0 commit comments

Comments
 (0)