[gtranslator] Improve tag regex. Fixes bug #617352
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Improve tag regex. Fixes bug #617352
- Date: Sat, 1 May 2010 10:25:05 +0000 (UTC)
commit c64a461bd9436f5395d957d1e37574259ea04733
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat May 1 12:24:40 2010 +0200
Improve tag regex. Fixes bug #617352
data/po.lang | 2 +-
plugins/insert-tags/gtr-insert-tags-plugin.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/po.lang b/data/po.lang
index ffb5418..9a4270a 100644
--- a/data/po.lang
+++ b/data/po.lang
@@ -41,7 +41,7 @@
<match>[&_][a-zA-Z]</match>
</context>
<context style-ref="tag">
- <match><[0-9a-zA-Z=.:;_#?'\"/\- ]+></match>
+ <match><[0-9a-zA-Z=.:;_#?%()'\"/\- ]+></match>
</context>
<context ref="python:format" style-ref="special-variable"/>
<context ref="c:printf"/>
diff --git a/plugins/insert-tags/gtr-insert-tags-plugin.c b/plugins/insert-tags/gtr-insert-tags-plugin.c
index 7b6f19d..b6f9d90 100644
--- a/plugins/insert-tags/gtr-insert-tags-plugin.c
+++ b/plugins/insert-tags/gtr-insert-tags-plugin.c
@@ -218,7 +218,7 @@ showed_message_cb (GtrTab * tab, GtrMsg * msg, GtrWindow * window)
/*
* Regular expression
*/
- regex = g_regex_new ("<[-0-9a-zA-Z=.:;_#?'\"/ ]+>", 0, 0, NULL);
+ regex = g_regex_new ("<[-0-9a-zA-Z=.:;_#?%()'\"/ ]+>", 0, 0, NULL);
g_regex_match (regex, msgid, 0, &match_info);
while (g_match_info_matches (match_info))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]