Skip to content

Commit

Permalink
Fix space normalization for search by innacurate text
Browse files Browse the repository at this point in the history
  • Loading branch information
BR0kEN- committed Apr 27, 2016
1 parent f022ca2 commit a36a2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/XPath/InaccurateText.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function __construct($query, NodeElement $parent = null)
public function __toString()
{
if (!empty($this->text)) {
$this->text = "[starts-with(translate(normalize-space(.), ' ', ''), '$this->text')]";
$this->text = "[starts-with(normalize-space(.), '$this->text')]";
}

return sprintf("$this->query[%s$this->text]", empty($this->attribute) ? 'text()' : "@$this->attribute");
Expand Down

0 comments on commit a36a2eb

Please sign in to comment.