remove facebook spam from url
This commit is contained in:
parent
48a3043a79
commit
ffeee38d7d
1 changed files with 3 additions and 0 deletions
|
@ -809,7 +809,10 @@ Ox.URL = function(options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseURL(str, callback) {
|
function parseURL(str, callback) {
|
||||||
|
// remove facebook spam
|
||||||
|
str = str.replace(/\?fbclid=[A-Za-z0-9_]+/, '')
|
||||||
// fixme: removing trailing slash makes it impossible to search for '/'
|
// fixme: removing trailing slash makes it impossible to search for '/'
|
||||||
|
|
||||||
var split = str.split('#'),
|
var split = str.split('#'),
|
||||||
parts = split.shift().replace(/(^\/|\/$)/g, '').split('/'),
|
parts = split.shift().replace(/(^\/|\/$)/g, '').split('/'),
|
||||||
state = split.length && split[0].length
|
state = split.length && split[0].length
|
||||||
|
|
Loading…
Reference in a new issue