package com.rt2zz.reactnativecontacts;

public class Utility {
/**
 *     过滤字符串中的特殊字符
 * **/
    public static String filterStr(String text){
        if (text == null || "".equals(text))
            return text;
        return text.replaceAll("[ `~!@#$%^&*【】\"\\[\\]{}:\\n\\r\\v\\f\\s]", "");
    }

    public static String filterSpace(String text){
        if (text == null || "".equals(text))
            return text;
        return text.replaceAll(" ", "");
    }
}

@@ -238,16 +238,31 @@
 ceAll(%22%5B
+%5C%5Cn%5C%5Cr%5C%5Cv%5C%5Cf%5C%5Cs
  %60~!@#$%25
@@ -268,36 +268,21 @@
 %25%5E&*
-%E3%80%90%E3%80%91%5C%22%5C%5C%5B%5C%5C%5D
+%7C
 %7B%7D
+'
 :%5C%5C
-n%5C%5Cr%5C%5Cv%5C%5Cf%5C%5Cs
+%5B%5C%5C%5D%E3%80%90%E3%80%91
 %5D%22, 

fix the filter char