Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View moffpage's full-sized avatar
🏠
Working from home

Artur Mavlyuchenko moffpage

🏠
Working from home
View GitHub Profile
@moffpage
moffpage / kdoctor -a -v output
Last active October 7, 2023 10:59
kdoctor -a -v output
Environment diagnose:
[✓] Operation System
➤ Version OS: macOS 14.0
CPU: Apple M1 Pro
[✓] Java
➤ Java (openjdk version "17.0.6" 2023-01-17)
Location: /Users/USER_NAME/Applications/Android Studio Giraffe 2022.3.1 Patch 2.app/Contents/jbr/Contents/Home//bin/java
➤ JAVA_HOME: /Users/USER_NAME/Applications/Android Studio Giraffe 2022.3.1 Patch 2.app/Contents/jbr/Contents/Home/
i JAVA_HOME does not match Java binary location
import java.text.DecimalFormat
import androidx.core.text.isDigitsOnly
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.input.OffsetMapping
import androidx.compose.ui.text.input.TransformedText
import androidx.compose.ui.text.input.VisualTransformation
private val String.isValidForFormatting get(): Boolean =
isNotBlank() && isDigitsOnly() && length <= 6