Skip to content

Commit fd4945a

Browse files
committed
Fix typo
1 parent 09df307 commit fd4945a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,16 @@ function parseEnvironmentBoolean(variableName, defaultValue) {
105105
const value = getEnvironmentString(variableName, defaultValue === undefined);
106106
if (value === undefined) {
107107
return defaultValue;
108-
} else if (/^(?:1|y|yes|t|true)$/u.text(value)) {
108+
} else if (/^(?:1|y|yes|t|true)$/u.test(value)) {
109109
return true;
110110
} else if (/^(?:0|n|no|f|false)$/u.test(value)) {
111111
return false;
112112
}
113113

114114
throw new Error(
115-
`$${variableName} must be a boolean, but its value is ${JSON.stringify(value)}`
115+
`$${variableName} must be a boolean, but its value is ${JSON.stringify(
116+
value
117+
)}`
116118
);
117119
}
118120

0 commit comments

Comments
 (0)