We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d75efe commit af1a98aCopy full SHA for af1a98a
crates/biome_js_type_info/src/type.rs
@@ -205,7 +205,7 @@ impl Type {
205
self.as_raw_data().is_some_and(|ty| match ty {
206
TypeData::Literal(literal) => match literal.as_ref() {
207
Literal::BigInt(literal) => literal
208
- .replace('n', "")
+ .trim_end_matches('n')
209
.parse::<i64>()
210
.ok()
211
.is_some_and(|literal_value| literal_value == value),
0 commit comments