Skip to content

Commit

Permalink
[PageScanner] Fix accent in url
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinDev committed Oct 24, 2022
1 parent 6845c0b commit fb27277
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 256 deletions.
Expand Up @@ -26,8 +26,17 @@ final class ConversationFormController extends AbstractController
*/
private array $possibleOrigins = [];

public function __construct(private TranslatorInterface $translator, private AppPool $apps, private ParameterBagInterface $params, private Twig $twig, private FormFactoryInterface $formFactory, private TokenStorageInterface $tokenStorage, private RouterInterface $router, private ManagerRegistry $doctrine, private string $env)
{
public function __construct(
private TranslatorInterface $translator,
private AppPool $apps,
private ParameterBagInterface $params,
private Twig $twig,
private FormFactoryInterface $formFactory,
private TokenStorageInterface $tokenStorage,
private RouterInterface $router,
private ManagerRegistry $doctrine,
private string $env
) {
}

/**
Expand Down
7 changes: 4 additions & 3 deletions packages/docs/content/homepage.md
@@ -1,10 +1,11 @@
---
title: Pushword - Modern CMS to build rapidly Websites (powered by Symfony)
h1: <span class="block mt-6 leading-relaxed">Build modern <em class="font-light">Content First</em> websites rapidly
h1:
<span class="block mt-6 leading-relaxed">Build modern <em class="font-light">Content First</em> websites rapidly
<br> <span class="text-primary dark:text-white">Manage and maintain it as quickly</span></span>
name: Pushword
template: /page/homepage.html.twig
prose: "max-w-screen-sm prose-sm md:prose-lg mx-auto p-3 prose dark:prose-light"
prose: 'max-w-screen-sm prose-sm md:prose-lg mx-auto p-3 prose dark:prose-light'
---

<div class="flex flex-row max-w-screen-lg mx-auto mb-6">
Expand Down Expand Up @@ -77,7 +78,7 @@ Unzip it on a classic Apache/PHP server and play.
<p><a href="/installation">Learn more about requirements and installation.</a></p>
<p>By default, it works without dirty work. It looks <strong>so simple</strong>. But don't be wrong, you
can do amazing custom thing with it !</p>
<p class="text-sm font-light text-center text-green-500"> PHP 7 // <strong style="color: rgba(16, 185, 129, var(--tw-text-opacity));">PHP 8</strong> // Symfony5</p>
<p class="text-sm font-light text-center text-green-500"><strong style="color: rgba(16, 185, 129, var(--tw-text-opacity));">PHP 8</strong> // Symfony 6</p>
</div>
</div>
<div class="px-3 py-6 mb-6 rounded-lg bg-indigo-50">
Expand Down
4 changes: 3 additions & 1 deletion packages/docs/content/roadmap.md
Expand Up @@ -7,12 +7,14 @@ parent: contribute

## BugFix && To finish

- Conversation form controller
- manage multiHost
- Scan : ajouter un check des liens vides `"></a`
- Yaml editor in Autres paramêtres

- Switch image block to use media.id moroever image.uri
- event listener on load to update json
- Rectorize with all List
- Scan : ajouter un check des liens vides `"></a`
- AdminBlockEditor : new list item, évitez d'ajouter le lien d'avant sans ancre...
- Implement ESlint
- https://github.com/jolicode/JoliTypo
Expand Down
2 changes: 1 addition & 1 deletion packages/page-scanner/src/Scanner/LinkedDocsScanner.php
Expand Up @@ -69,7 +69,7 @@ private static function prepareForRegex(array|string $var): string

private static function isWebLink(string $url): bool
{
return (bool) \Safe\preg_match('@^((?:(http:|https:)//([\w\d-]+\.)+[\w\d-]+){0,1}(/?[\w~,;\-\./?%&+#=]*))$@', $url);
return (bool) \Safe\preg_match('@^((?:(http:|https:)//([\wà-üÀ-Ü-]+\.)+[\w-]+){0,1}(/?[\wà-üÀ-Ü~,;\-\./?%&+#=]*))$@', $url);
}

/**
Expand Down

0 comments on commit fb27277

Please sign in to comment.