Escape '(' and ')' in regexp.
authorhanda <handa>
Fri, 11 May 2007 04:47:14 +0000 (04:47 +0000)
committerhanda <handa>
Fri, 11 May 2007 04:47:14 +0000 (04:47 +0000)
LANGNAME.awk

index aa31641..5f5e5fd 100644 (file)
@@ -110,7 +110,7 @@ BEGIN {
                gsub(", autres langues$", "", name);
                gsub(", autres$", "", name);
                gsub(", langues$", "", name);
-               gsub(", langues (famille)$", "", name);
+               gsub(", langues \\(famille\\)$", "", name);
                if (name ~ /\(.*[0-9].*\)$/)
                    gsub(" \\([^)]*\\)$", "", name);
                if (name ~ ", ") {