Skip to content

Commit 2f4a1c1

Browse files
dermatzCopilot
andauthored
Update src/Service/Hyva/IncompatibilityDetector.php
Co-authored-by: Copilot <[email protected]>
1 parent 20d92d6 commit 2f4a1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/Hyva/IncompatibilityDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class IncompatibilityDetector
4343
'severity' => self::SEVERITY_WARNING,
4444
],
4545
[
46-
'pattern' => '/mage\//',
46+
'pattern' => '/(?:define|require)\s*\(\s*\[[^\]]*["\']mage\/[^"\']*["\']/',
4747
'description' => 'Magento RequireJS module reference',
4848
'severity' => self::SEVERITY_CRITICAL,
4949
],

0 commit comments

Comments
 (0)