1
0
Fork 0
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:
Paul Schaub 2019-08-04 15:00:25 +02:00
parent 3e74d11b45
commit 9f86eda532
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
3 changed files with 19 additions and 14 deletions

View file

@ -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