diff --git a/lib/urlify.js b/lib/urlify.js index cd6d089..0c6ebc3 100644 --- a/lib/urlify.js +++ b/lib/urlify.js @@ -122,8 +122,11 @@ downcode= function( slug ) return downcoded; } +//This code is not global accesible: +//function URLify(s, num_chars) { -function URLify(s, num_chars) { +//This code IS global accesible: +URLify = function (s, num_chars) { // changes, e.g., "Petty theft" to "petty_theft" // remove all these words from the string before urlifying s = downcode(s);