From 8ed13a10708c9bd8c5766886a188784c58533f82 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 11 May 2007 04:47:14 +0000 Subject: [PATCH] Escape '(' and ')' in regexp. --- LANGNAME.awk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LANGNAME.awk b/LANGNAME.awk index aa31641..5f5e5fd 100644 --- a/LANGNAME.awk +++ b/LANGNAME.awk @@ -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 ~ ", ") { -- 1.7.10.4