Skip to content

Commit

Permalink
Bump to 1.0.1 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
mmikkel committed Apr 25, 2024
1 parent b6ef5b8 commit f5c69a7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 89 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# CloudflareMate Changelog

## 1.0.1 - 2024-04-26
### Fixed
- Fixed an issue where only the first regex rule in `ignoredUrls` would be processed
- Fixed icon rendering issues

## 1.0.0 - 2024-04-25
### Added
- Initial release for Craft 4
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "vaersaagod/cloudflaremate",
"description": "Are your clouds flaring up again, mate?",
"type": "craft-plugin",
"version": "1.0.0",
"version": "1.0.1",
"require": {
"php": ">=8.1",
"craftcms/cms": "^4.7.0"
Expand Down
5 changes: 3 additions & 2 deletions src/helpers/CloudflareMateHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ public static function shouldUriBeIgnored(string $uri): bool
continue;
}
try {
return (bool)preg_match("/$uriPattern/", $uri);
if (preg_match("/$uriPattern/", $uri)) {
return true;
}
} catch (\Throwable $e) {
Craft::error("Invalid regex pattern \"$uriPattern\"", __METHOD__);
Craft::error($e, __METHOD__);
return false;
}
}
return false;
Expand Down
87 changes: 1 addition & 86 deletions src/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f5c69a7

Please sign in to comment.