<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>.gitignore</filename>
    </added>
    <added>
      <filename>test/test_smartypants.nu</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -17,14 +17,14 @@
      )
 
 (function smartypants_ProcessEscapes (str)
-     (set str ((regex (&quot;\\\\ &quot; substringToIndex:3)) replaceWithString:&quot;&amp;#92;&quot; inString:str))
-     (set str (/&quot;/  replaceWithString:&quot;&amp;#34;&quot; inString:str))
-     (set str ((regex &quot;\\\'&quot;) replaceWithString:&quot;&amp;#39;&quot; inString:str))
-     (set str ((regex &quot;\\\. &quot;) replaceWithString:&quot;&amp;#46;&quot; inString:str))
-     (set str ((regex &quot;\\-&quot;) replaceWithString:&quot;&amp;#45;&quot; inString:str))
-     (set str ((regex &quot;\\`&quot;) replaceWithString:&quot;&amp;#96;&quot; inString:str))
-     (str)
-     )
+     ; (set str ((regex (&quot;\\\\ &quot; substringToIndex:3)) replaceWithString:&quot;&amp;#92;&quot; inString:str))
+	(set str (/\\\\/x replaceWithString:&quot;&amp;#92;&quot; inString:str))
+	(set str (/\\&quot;/x replaceWithString:&quot;$#34;&quot; inString:str))
+	(set str (/\\'/x replaceWithString:&quot;&amp;#39;&quot; inString:str))
+	(set str (/\\\./x replaceWithString:&quot;&amp;#46;&quot; inString:str))
+	(set str (/\\-/x replaceWithString:&quot;&amp;#45;&quot; inString:str))
+	(set str (/\\`/x replaceWithString:&quot;&amp;#96;&quot; inString:str))
+    str)
 
 (function smartypants_EducateQuotes (str)
      (set punct_class &quot;[!\&quot;#\$\%'()*+,-.\/:;&lt;=&gt;?\@\[\\\]\^_`{|}~]&quot;)
@@ -75,12 +75,16 @@
                                 (if (== in_pre 0)
                                     (set value (smartypants_ProcessEscapes value))
                                     (set value ((regex &quot;&amp;quot;&quot;) replaceWithString:&quot;\&quot;&quot; inString:value)) ; Ignoring an if from the original source
-                                    (set value ((regex &quot;--&quot;) replaceWithString:&quot;&amp;#8212;&quot; inString:value)) ; Educate dashes
-                                    (set value (/\.\.\./ replaceWithString:&quot;&amp;#8230;&quot; inString:value)) ; Educate ellipses
+									; Educate dashes
+									(set value (/---/ replaceWithString:&quot;&amp;#8211;&quot; inString:value))
+                                    (set value (/--/ replaceWithString:&quot;&amp;#8212;&quot; inString:value))
+
+									; Educate ellipses
+                                    (set value (/\. ?\. ?\./ replaceWithString:&quot;&amp;#8230;&quot; inString:value))
                                     
                                     ; Educate backticks
-                                    (set value ((regex &quot;``&quot;) replaceWithString:&quot;&amp;#8220;&quot; inString:value))
-                                    (set value ((regex &quot;''&quot;) replaceWithString:&quot;&amp;#8221;&quot; inString:value))
+                                    (set value (/``/ replaceWithString:&quot;&amp;#8220;&quot; inString:value))
+                                    (set value (/''/ replaceWithString:&quot;&amp;#8221;&quot; inString:value))
                                     ; Educate single backticks
                                     (set value ((regex &quot;`&quot;) replaceWithString:&quot;&amp;#8216;&quot; inString:value))
                                     (set value ((regex &quot;''&quot;) replaceWithString:&quot;&amp;#8217;&quot; inString:value))</diff>
      <filename>smartypants.nu</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7cd7d5a6853c19313bf06fdb5b4e3efcd1891b9a</id>
    </parent>
  </parents>
  <author>
    <name>Grayson Hansard</name>
    <email>ghansard@dhcp128036047239.its.yale.edu</email>
  </author>
  <url>http://github.com/Grayson/nusmartypants/commit/29b2aad10177b6f7aec6bdd6ba8174cb233123de</url>
  <id>29b2aad10177b6f7aec6bdd6ba8174cb233123de</id>
  <committed-date>2008-04-01T16:53:12-07:00</committed-date>
  <authored-date>2008-04-01T16:53:12-07:00</authored-date>
  <message>Fixed a rather serious bug involving escape processsing and added simple tests.</message>
  <tree>45d1963cf93480c161b55b104038c7e68d78565b</tree>
  <committer>
    <name>Grayson Hansard</name>
    <email>ghansard@dhcp128036047239.its.yale.edu</email>
  </committer>
</commit>
