(String text)
| 2663 | } |
| 2664 | |
| 2665 | static String getPreview(String text) { |
| 2666 | if (text == null) |
| 2667 | return null; |
| 2668 | |
| 2669 | String preview = text |
| 2670 | .replace("\u200C", "") // Zero-width non-joiner |
| 2671 | .replaceAll("\\s+", " "); |
| 2672 | return truncate(preview, PREVIEW_SIZE); |
| 2673 | } |
| 2674 | |
| 2675 | static String getFullText(Context context, String body) { |
| 2676 | try { |
no test coverage detected