| 1 |
// $Id: urlify.js,v 1.1.2.3 2007/09/29 08:24:18 canen Exp $ |
// $Id: urlify.js,v 1.1.2.4 2007/10/21 01:55:35 canen Exp $ |
| 2 |
if (Drupal.jsEnabled) { |
if (Drupal.jsEnabled) { |
| 3 |
$(document).ready(function () { |
$(document).ready(function () { |
| 4 |
var LATIN_MAP = { |
var LATIN_MAP = { |
| 124 |
// Temporary work around for the removelist is returned. |
// Temporary work around for the removelist is returned. |
| 125 |
// removelist was an array now it is a string |
// removelist was an array now it is a string |
| 126 |
removelist = removelist.replace(/'/gi, ''); |
removelist = removelist.replace(/'/gi, ''); |
| 127 |
r = new RegExp('\\b(' + removelist.replace(/,/, '|') + ')\\b', 'gi'); |
r = new RegExp('\\b(' + removelist.replace(/\,/gi, '|') + ')\\b', 'gi'); |
| 128 |
|
|
| 129 |
s = s.replace(r, ''); |
s = s.replace(r, ''); |
| 130 |
// if downcode doesn't hit, the char will be stripped here |
// if downcode doesn't hit, the char will be stripped here |