rats-search/src/background/detectOneByte.js

7 lines
156 B
JavaScript

module.exports = (str) => {
for(let i = 0; i < str.length; i++) {
if(str.charCodeAt(i) > 191)
return false;
}
return true;
}