Skip to content
Browse files

having problems spelling RegEx :P

  • Loading branch information...
1 parent 1570bbd commit 27323b231d3d504ac7564a87302a145b78ff0c03 Tony Petruzzi committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 mustache/Mustache.cfc
View
4 mustache/Mustache.cfc
@@ -35,7 +35,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--->
<cfset variables.SectionRegEx = CreateObject("java","java.util.regex.Pattern").compile("\{\{(##|\^)\s*(\w+)\s*}}(.*?)\{\{/\s*\2\s*\}\}", 32)>
- <cfset variables.TagRexEx = CreateObject("java","java.util.regex.Pattern").compile("\{\{(!|\{|&|\>)?\s*(\w+).*?\}?\}\}", 32) />
+ <cfset variables.TagRegEx = CreateObject("java","java.util.regex.Pattern").compile("\{\{(!|\{|&|\>)?\s*(\w+).*?\}?\}\}", 32) />
<cffunction name="init" output="false">
<cfreturn this />
@@ -131,7 +131,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
<cfset var tagName = ""/>
<cfset var matches = arrayNew(1) />
<cfloop condition = "true" >
- <cfset matches = ReFindNoCaseValues(template, variables.TagRexEx) />
+ <cfset matches = ReFindNoCaseValues(template, variables.TagRegEx) />
<cfif arrayLen(matches) eq 0>
<cfbreak>
</cfif>

0 comments on commit 27323b2

Please sign in to comment.
Something went wrong with that request. Please try again.