test: harden Related Stories browser acceptance
This commit is contained in:
3 files changed
+60
-11
No files matched your search
@@ -0,0 +1,6 @@
|
||||
export const phpDiagnosticPattern =
|
||||
/(?:PHP\s+(?:Warning|Notice|Fatal error|Parse error|Deprecated)\b|(?:Warning|Notice|Fatal error|Parse error|Deprecated)\s*:|<b>\s*(?:Warning|Notice|Fatal error|Parse error|Deprecated)\s*<\/b>\s*:)/i;
|
||||
|
||||
export function containsPhpDiagnostic( responseBody ) {
|
||||
return phpDiagnosticPattern.test( responseBody );
|
||||
}
|
||||
Reference in new issue
Block a user