File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 733733 // https://github.com/gorhill/uBlock/issues/313
734734 // Always try to fetch the name if this is an external filter list.
735735 if ( listEntry . title === '' || listEntry . group === 'custom' ) {
736- matches = head . match ( / (?: ^ | \n ) ! \s * T i t l e : ( [ ^ \n ] + ) / i) ;
736+ matches = head . match ( / (?: ^ | \n ) (?: ! | # ) \s * T i t l e : ( [ ^ \n ] + ) / i) ;
737737 if ( matches !== null ) {
738738 // https://bugs.chromium.org/p/v8/issues/detail?id=2869
739739 // JSON.stringify/JSON.parse is to work around String.slice()
743743 }
744744 }
745745 // Extract update frequency information
746- matches = head . match ( / (?: ^ | \n ) ! [ \t ] * E x p i r e s : [ \t ] * ( [ \d ] + ) [ \t ] * d a y s ? / i) ;
746+ matches = head . match ( / (?: ^ | \n ) (?: ! | # ) [ \t ] * E x p i r e s : [ \t ] * ( \d + ) [ \t ] * d a y / i) ;
747747 if ( matches !== null ) {
748748 v = Math . max ( parseInt ( matches [ 1 ] , 10 ) , 1 ) ;
749749 if ( v !== listEntry . updateAfter ) {
You can’t perform that action at this time.
0 commit comments