mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-15 03:59:38 +02:00
OMEMO: converse.js compatibility
This commit is contained in:
parent
3e74d11b45
commit
9f86eda532
3 changed files with 19 additions and 14 deletions
|
@ -222,6 +222,10 @@ public class StringUtils {
|
|||
return out;
|
||||
}
|
||||
|
||||
public static String removeNewLines(String s) {
|
||||
return s.trim().replaceAll("\n", "");
|
||||
}
|
||||
|
||||
/**
|
||||
* Hashes a String using the SHA-1 algorithm and returns the result as a
|
||||
* String of hexadecimal numbers. This method is synchronized to avoid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue