diff --git a/classes/display/HTMLDisplayHandler.php b/classes/display/HTMLDisplayHandler.php index 36adaf5bb..0ec430e37 100644 --- a/classes/display/HTMLDisplayHandler.php +++ b/classes/display/HTMLDisplayHandler.php @@ -19,7 +19,7 @@ class HTMLDisplayHandler * List of scripts to block loading */ public static $blockedScripts = array( - '@(?:^|/)j[Qq]uery(?:-[0-9]+(?:\.[0-9x]+)*)?(?:\.min)?\.js$@', + '@(?:^|/)j[Qq]uery(?:-[0-9]+(?:\.[0-9x]+)*|-latest)?(?:\.min)?\.js$@', ); /** diff --git a/tests/unit/classes/FrontEndFileHandlerTest.php b/tests/unit/classes/FrontEndFileHandlerTest.php index dfe99509c..a0dc55837 100644 --- a/tests/unit/classes/FrontEndFileHandlerTest.php +++ b/tests/unit/classes/FrontEndFileHandlerTest.php @@ -258,6 +258,7 @@ class FrontEndFileHandlerTest extends \Codeception\TestCase\Test $handler->loadFile(array('./common/js/jquery-1.x.min.js')); $handler->loadFile(array('./common/js/jquery-2.0.0.js')); $handler->loadFile(array('./common/js/jQuery.min.js')); + $handler->loadFile(array('http://code.jquery.com/jquery-latest.js')); $result = $handler->getCssFileList(); $this->assertEquals(0, count($result)); $result = $handler->getJsFileList();