Révision 08f5d39b
Ajouté par Assos Assos il y a plus de 8 ans
drupal7/misc/autocomplete.js | ||
---|---|---|
271 | 271 |
var db = this; |
272 | 272 |
this.searchString = searchString; |
273 | 273 |
|
274 |
// See if this string needs to be searched for anyway. |
|
275 |
searchString = searchString.replace(/^\s+|\s+$/, ''); |
|
274 |
// See if this string needs to be searched for anyway. The pattern ../ is |
|
275 |
// stripped since it may be misinterpreted by the browser. |
|
276 |
searchString = searchString.replace(/^\s+|\.{2,}\/|\s+$/g, ''); |
|
277 |
// Skip empty search strings, or search strings ending with a comma, since |
|
278 |
// that is the separator between search terms. |
|
276 | 279 |
if (searchString.length <= 0 || |
277 | 280 |
searchString.charAt(searchString.length - 1) == ',') { |
278 | 281 |
return; |
Formats disponibles : Unified diff
Update drupal 7.38 -> 7.39