<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,7 +9,7 @@ module PermalinkFu
 
   def self.escape(str)
     s = ActiveSupport::Multibyte::Handlers::UTF8Handler.normalize(str.to_s, :kd)
-    s.gsub!(/[^\w -]+/, '')  # strip unwanted characters
+    s.gsub!(/[^\w -]+/n, '')  # strip unwanted characters
     s.strip! # ohh la la
     s.downcase!
     s.gsub!(/[ -]+/, '-')  # separate by single dashes</diff>
      <filename>lib/permalink_fu.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8f9fb435605dfcdb9e67f252e4fe8cb77b5a6f7c</id>
    </parent>
  </parents>
  <author>
    <name>Henrik N</name>
    <email>henrik@nyh.se</email>
  </author>
  <url>http://github.com/henrik/permalink_fu/commit/589de2f3f492080ef6baa379c942649e6bd50cf9</url>
  <id>589de2f3f492080ef6baa379c942649e6bd50cf9</id>
  <committed-date>2008-06-08T01:10:00-07:00</committed-date>
  <authored-date>2008-06-08T01:10:00-07:00</authored-date>
  <message>Use /n flag (encoding = none) when stripping non-word characters.

Tim Haines reported an issue under Windows where the Chinese text tests failed. Presumably the tests were run in a context where KCODE was Unicode, treating the Chinese characters as \w.</message>
  <tree>7f2958011c97e1fac694a1afe77e40fe1b5fdf88</tree>
  <committer>
    <name>Henrik N</name>
    <email>henrik@nyh.se</email>
  </committer>
</commit>
