Roo/XTemplate.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 6 Apr 2012 16:23:32 +0000 (00:23 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 6 Apr 2012 16:23:32 +0000 (00:23 +0800)
Roo/XTemplate.js

index bbaa74c..9cb7008 100644 (file)
@@ -18,7 +18,18 @@ Roo.XTemplate = function(){
 
 Roo.extend(Roo.XTemplate, Roo.Template, {
 
-    re : /\{([\w-\.]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?\}/g,
+    /**
+     *
+     * basic tag replacing syntax
+     * WORD:WORD()
+     * 
+     */
+    re : new RegExp(
+            '\{' +
+            '([\w-\.]+)' +
+            '(?:\:([\w\.]*)' +
+            '(?:\((.*?)?\))?)?' +
+            '\}', 'g'),
 
     
     compile: function()