Skip to content

Commit

Permalink
refactoring following mutation tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-craft committed Aug 16, 2023
1 parent 4184026 commit 9a57f8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ String.EMPTY;
| [`isNullOrBlank`](#isNullOrBlank) | Indicates whether a specified string is null, undefined, empty, or consists only of white-space characters (reverse with `isNotNullOrBlank` method). |
| [`isNumber`](#isNumber) | Indicates whether the specified string is a valid numeric string (reverse with `isNotNumber` method). |
| [`isAlpha`](#isAlpha) | Indicates whether a given value consists only of alphabetic characters (reverse with `isNotAlpha` method). |
| [`isAlphaNumber`](#isAlphaNumber) | Indicates whether the specified string contains both alphabetic characters and numbers (reverse with `isNotAlphaNumber` method). |
| [`isAlphaNumber`](#isAlphaNumber) | Indicates whether the specified string contains only alphabetic characters and numbers (reverse with `isNotAlphaNumber` method). |
| [`containsNumber`](#containsNumber) | Indicates whether the specified string contains at least one numeric digit (reverse with `notContainsNumber` method). |
| [`containsAlpha`](#containsAlpha) | Indicates whether the specified string contains at least one alphabetic character (reverse with `notContainsAlpha` method). |
| [`containsSpecialCharacter`](#containsSpecialCharacter) | Indicates whether a given string contains at least one special character (reverse with `notContainsSpecialCharacter` method). |
Expand Down
8 changes: 0 additions & 8 deletions src/string.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,6 @@ export class String {
return false;
}

if (String.isNumber(value)) {
return false;
}

if (String.containsSpecialCharacter(value)) {
return false;
}
Expand Down Expand Up @@ -322,10 +318,6 @@ export class String {
* @returns {boolean} True if the string contains both alphabetic characters and numbers; otherwise false.
*/
static isAlphaNumber(value: StringOrNullOrUndefined): boolean {
if (value == undefined) {
return false;
}

if (String.isNullOrBlank(value)) {
return false;
}
Expand Down

0 comments on commit 9a57f8c

Please sign in to comment.