@@ -90,9 +90,13 @@ function (string $url, string $file = null): bool {
9090 ;
9191 },
9292 function (string $ url , string $ file = null ): bool {
93- return str_ends_with ($ file , 'rest_api_authentication.md ' )
93+ return str_ends_with ($ file , '/ rest_api_authentication.md ' )
9494 && str_ends_with ($ url , 'web+ez:DELETE /content/locations/1/2 ' );
9595 },
96+ function (string $ url , string $ file = null ): bool {
97+ return str_ends_with ($ file , '/file_url_handling.md ' )
98+ && (str_contains ($ url , 'http://` ' ) || str_contains ($ url , 'ftp://` ' ));
99+ },
96100 ],
97101 'location ' => [
98102 function (string $ url , string $ location , string $ file = null ): bool {
@@ -109,6 +113,11 @@ function (string $url, string $location, string $file = null): bool {
109113 },
110114 ],
111115 'fragment ' => [
116+ function (string $ url , string $ file = null ): bool {
117+ // ## Commerce [[% include 'snippets/commerce_badge.md' %]]
118+ return str_ends_with ($ file , '.md ' )
119+ && str_ends_with ($ url , 'permission_use_cases.md#commerce ' );
120+ },
112121 function (string $ url , string $ file = null ): bool {
113122 return str_starts_with ($ url , 'https://classic.yarnpkg.com/en/docs/ ' )
114123 || str_starts_with ($ url , 'https://ddev.readthedocs.io/ ' );
0 commit comments