Simulate cleanUp first so that we don't warn about HTML comments that the script will remove anyway in the future
This commit is contained in:
parent
f1f2868db6
commit
baf4f90834
@ -1022,8 +1022,12 @@
|
|||||||
function checkLongComments () {
|
function checkLongComments () {
|
||||||
var deferred = $.Deferred();
|
var deferred = $.Deferred();
|
||||||
|
|
||||||
afchPage.getText( true ).done( function ( text ) {
|
afchPage.getText( true ).done( function ( rawText ) {
|
||||||
var longCommentRegex = /(?:<![ \r\n\t]*--)([^\-]|[\r\n]|-[^\-]){30,}(?:--[ \r\n\t]*>)?/g,
|
var
|
||||||
|
// Simulate cleanUp first so that we don't warn about HTML
|
||||||
|
// comments that the script will remove anyway in the future
|
||||||
|
text = ( new AFCH.Text( rawText ) ).cleanUp( true ),
|
||||||
|
longCommentRegex = /(?:<![ \r\n\t]*--)([^\-]|[\r\n]|-[^\-]){30,}(?:--[ \r\n\t]*>)?/g,
|
||||||
longCommentMatches = text.match( longCommentRegex ) || [],
|
longCommentMatches = text.match( longCommentRegex ) || [],
|
||||||
numberOfComments = longCommentMatches.length,
|
numberOfComments = longCommentMatches.length,
|
||||||
oneComment = numberOfComments === 1;
|
oneComment = numberOfComments === 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user