Skip to content

Commit

Permalink
Misc: lint comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 26, 2024
1 parent 21392ad commit 02039df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
},
"suspicious": {
"noAssignInExpressions": "off",
"noControlCharactersInRegex": "off",
"noDoubleEquals": "off",
"noFallthroughSwitchClause": "off",
"noRedeclare": "off",
Expand Down
5 changes: 4 additions & 1 deletion runtime/mlBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ function jsoo_is_ascii(s) {
// Spidermonkey gets much slower when s.length >= 24 (on 64 bit archs)
for (var i = 0; i < s.length; i++) if (s.charCodeAt(i) > 127) return false;
return true;
} else return !/[^\x00-\x7f]/.test(s);
}
// biome-ignore lint/suspicious/noControlCharactersInRegex: expected
else return !/[^\x00-\x7f]/.test(s);
}

//Provides: caml_bytes_unsafe_get mutable
Expand Down Expand Up @@ -907,6 +909,7 @@ function caml_ml_bytes_content(s) {
//Requires: jsoo_is_ascii
//If: js-string
function caml_is_ml_string(s) {
// biome-ignore lint/suspicious/noControlCharactersInRegex: expected
return typeof s === "string" && !/[^\x00-\xff]/.test(s);
}

Expand Down

0 comments on commit 02039df

Please sign in to comment.