Skip to content

Commit

Permalink
что сделал
Browse files Browse the repository at this point in the history
  • Loading branch information
Данейкин Илья Вячеславович authored and Данейкин Илья Вячеславович committed Sep 25, 2024
1 parent ce91eda commit 7b96076
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 1-module/4-task/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
function checkSpam(str) {
// ваш код...
if (str.length === 0) return str;

let trueStr = str.toLowerCase();
if (trueStr.includes('1xbet') || trueStr.includes('xxx')) {
return true;
} else {
return false;
}
}

0 comments on commit 7b96076

Please sign in to comment.