Skip to content

Commit

Permalink
[NodeBundle] fixed url chooser for multidomain (#2224)
Browse files Browse the repository at this point in the history
[NodeBundle] Fixed url chooser for multidomain
  • Loading branch information
deZinc authored and Devolicious committed Jan 15, 2019
1 parent b260ec7 commit fdac041
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kunstmaan/NodeBundle/Helper/URLHelper.php
Expand Up @@ -73,7 +73,7 @@ public function replaceUrl($text)
}

if ($this->isInternalLink($text)) {
preg_match_all("/\[(([a-z_A-Z]+):)?NT([0-9]+)\]/", $text, $matches, PREG_SET_ORDER);
preg_match_all("/\[(([a-z_A-Z\.]+):)?NT([0-9]+)\]/", $text, $matches, PREG_SET_ORDER);

if (count($matches) > 0) {
$map = $this->getNodeTranslationMap();
Expand Down
2 changes: 1 addition & 1 deletion src/Kunstmaan/NodeBundle/Validation/URLValidator.php
Expand Up @@ -17,7 +17,7 @@ public function isEmailAddress($link)
*/
public function isInternalLink($link)
{
preg_match_all("/\[(([a-z_A-Z]+):)?NT([0-9]+)\]/", $link, $matches, PREG_SET_ORDER);
preg_match_all("/\[(([a-z_A-Z\.]+):)?NT([0-9]+)\]/", $link, $matches, PREG_SET_ORDER);

return count($matches) > 0;
}
Expand Down

0 comments on commit fdac041

Please sign in to comment.