fix
This commit is contained in:
@@ -109,6 +109,15 @@ extension StringExtensions on String {
|
||||
if (cleaned.length < 10) return this;
|
||||
return '${cleaned.substring(0, 4)} ${cleaned.substring(4, 7)} ***';
|
||||
}
|
||||
|
||||
/// Remove leading "#" from string (e.g., "#SO-001" -> "SO-001")
|
||||
/// Useful for backend IDs that start with "#"
|
||||
String get withoutHash {
|
||||
if (startsWith('#')) {
|
||||
return substring(1);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================================
|
||||
|
||||
Reference in New Issue
Block a user