Skip to content

Commit

Permalink
Removed old solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekbogdanski committed Nov 8, 2021
1 parent 87913d2 commit 3687a90
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions core/htmldataprocessor.js
Expand Up @@ -997,7 +997,6 @@
var regexes = [
createEncodedKeywordRegex(),
createSourceKeywordRegex(),
createCkeDataFilterRegex(),
createIncorrectCommentRegex()
];

Expand Down Expand Up @@ -1034,28 +1033,6 @@
return /<!(?:\s*-\s*){2,3}!?\s*>/g;
}

// Produces regex matching `data-cke-filter=off`.
function createCkeDataFilterRegex() {
return new RegExp(
'(' +
createEncodedRegex( 'data-cke-filter' ) +
// Equal sign with any spaces variations around it
'[\\s]*' +
createEncodedRegex( '=' ) + '{1}' +
'[\\s]*' +
// Opening quotes variations.
createEncodedRegex( '\'' ) + '?' +
createEncodedRegex( '"' ) + '?' +
// Only `off` value has meaning for the filter.
createEncodedRegex( 'off' ) + '{1}' +
// Closing quotes variations.
createEncodedRegex( '\'' ) + '?' +
createEncodedRegex( '"' ) + '?' +
')',
'gi'
);
}

// Produces regex matching `cke:encoded` element.
function createEncodedKeywordRegex() {
return new RegExp( '(' +
Expand Down

0 comments on commit 3687a90

Please sign in to comment.