From ed07168fac92c338fd22e4899d0266835c91e27a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Mon, 19 Jun 2023 17:08:48 +0200 Subject: [PATCH] impl. NBSP support for xpath in Behat Context --- src/Behat/Context.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Behat/Context.php b/src/Behat/Context.php index 60b7c35898..01b8b6670c 100644 --- a/src/Behat/Context.php +++ b/src/Behat/Context.php @@ -231,6 +231,13 @@ function ($matches) { $selector ); + // add NBSP support for normalize-space() xpath function + $xpath = preg_replace( + '~(?