Index: trunk/extensions/LiveTranslate/includes/ext.livetranslate.js |
— | — | @@ -174,7 +174,7 @@ |
175 | 175 | function insertNoTranslateTags( words ) { |
176 | 176 | for ( i in words ) { |
177 | 177 | $( '#bodyContent *' ).replaceText( |
178 | | - new RegExp( "\\b" + RegExp.escape( words[i] ) + "\\b", "g" ), |
| 178 | + new RegExp( "(\\W)*" + RegExp.escape( words[i] ) + "(\\W)*", "g" ), |
179 | 179 | function( str ) { |
180 | 180 | return '<span class="notranslate">' + str + '</span>' |
181 | 181 | } |