Tokens that include itself ++/-- are now ignored as well.
token = $1 # strip ++/-- from token
flag = $2 # remember ++/--
token = $1 # strip ++/-- from token
flag = $2 # remember ++/--
+ # token must not have more than one ++/--
+ next if token.match(/(\+\+|--)/)
+
# each token must include at least one alphanumerical character
next unless token.match /[[:alnum:]]/
# each token must include at least one alphanumerical character
next unless token.match /[[:alnum:]]/
+ '+rw+r++r++',
+ '-rw-r--r--',
'https://linux.slashdot.org/story/20/04/12/2138205/how-red-hats-new-ceo-handles-life-under-ibm----and-a-global-pandemic'
]
ignored.each do |ignore|
'https://linux.slashdot.org/story/20/04/12/2138205/how-red-hats-new-ceo-handles-life-under-ibm----and-a-global-pandemic'
]
ignored.each do |ignore|