From 2e8ad294951815bc8c2e1f37cfa3d4d4bff364af Mon Sep 17 00:00:00 2001
From: erdgeist <>
Date: Tue, 10 Jun 2008 19:45:25 +0000
Subject: IE cant call functions on regexp declarations.

---
 encoding.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/encoding.js b/encoding.js
index f0b68a7..52265de 100644
--- a/encoding.js
+++ b/encoding.js
@@ -147,7 +147,7 @@ function decode_base64( str ) {
 
 function decode_header( line ) {
   while( 1 ) {
-    var enc_word = /=\?(\S+)\?(Q|B)\?(\S+)\?=/(line);
+    var enc_word = line.match( /=\?(\S+)\?(Q|B)\?(\S+)\?=/ );
     var dec_word;
     if( enc_word == null ) {
       break;
-- 
cgit v1.2.3