Django

Code

Changeset 1017

Show
Ignore:
Timestamp:
10/27/05 22:41:39 (3 years ago)
Author:
adrian
Message:

Fixed #700 -- urlify.js now uses hyphens instead of underscores

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/media/js/urlify.js

    r968 r1017  
    1010    s = s.replace(/[^\w\s-]/g, '');  // remove unneeded chars 
    1111    s = s.replace(/^\s+|\s+$/g, ''); // trim leading/trailing spaces 
    12     s = s.replace(/\s+/g, '_');      // convert spaces to underscore
     12    s = s.replace(/\s+/g, '-');      // convert spaces to hyphen
    1313    s = s.toLowerCase();             // convert to lowercase 
    1414    return s.substring(0, num_chars);// trim to first num_chars chars