]> git.proxmox.com Git - proxmox-i18n.git/blobdiff - jsgettext.pl
js generator: use word-boundary anchor in regex
[proxmox-i18n.git] / jsgettext.pl
index d2f293e23dc40c13c3b3c15eff981fc14c818f67..689ffcc2118ef97e15a944131753a2e869e67605 100755 (executable)
@@ -93,7 +93,7 @@ sub extract_msg {
 
     while(1) {
        my $text;
-       if ($line =~ m/\Wgettext\s*\((("((?:[^"\\]++|\\.)*+)")|('((?:[^'\\]++|\\.)*+)'))\)/g) {
+       if ($line =~ m/\bgettext\s*\((("((?:[^"\\]++|\\.)*+)")|('((?:[^'\\]++|\\.)*+)'))\)/g) {
            $text = $3 || $5;
        }