mirror of
https://github.com/leanote/leanote-android.git
synced 2026-01-13 07:03:54 +08:00
Fix TitleHighlight
This commit is contained in:
@@ -58,7 +58,7 @@ public class StringUtils {
|
|||||||
//转义正则表达式中的几个特殊符号
|
//转义正则表达式中的几个特殊符号
|
||||||
public static String escapeRegex(String str) {
|
public static String escapeRegex(String str) {
|
||||||
int length = str.length();
|
int length = str.length();
|
||||||
StringBuilder sbf = new StringBuilder();
|
StringBuilder sbf = new StringBuilder(str);
|
||||||
for (int i = 0; i < length; i++) {
|
for (int i = 0; i < length; i++) {
|
||||||
char c = str.charAt(i);
|
char c = str.charAt(i);
|
||||||
if (c == '*') {
|
if (c == '*') {
|
||||||
|
|||||||
Reference in New Issue
Block a user