-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Préavis] Ajoute le champ trigramme dans le formulaire des préavis au…
…to (#3483) ## Linked issues - Resolve #3412 - Resolve #3459 - Resolve #3471 - Resolve #3458 - Resolve #3430 - Resolve #3436 - Resolve #3317 - Resolve #3401 ---- - [ ] Tests E2E (Cypress)
- Loading branch information
Showing
87 changed files
with
1,261 additions
and
899 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package fr.gouv.cnsp.monitorfish | ||
|
||
class Utils { | ||
companion object { | ||
/** | ||
* Compares two strings by trimming them and checking if they are equivalent: | ||
* | ||
* If both strings are null or empty, they are considered equivalent. | ||
*/ | ||
fun areStringsEqual(leftString: String?, rightString: String?): Boolean { | ||
val normalizedLeftString = leftString?.trim().takeUnless { it.isNullOrEmpty() || it == " " } | ||
val normalizedRightString = rightString?.trim().takeUnless { it.isNullOrEmpty() || it == " " } | ||
|
||
return normalizedLeftString == normalizedRightString | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.