Skip to content

Commit

Permalink
Update CHANGESLOG.md, composer.json, and Helper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Adinan committed Feb 1, 2021
1 parent c5715fc commit 433d1fb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGESLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).



## 3.0.1 - 2021-02-01

### Fixed

- Router was generating error when faced with a empty path.



## 3.0.0 - 2021-02-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"keywords": ["router"],
"license": "MIT",
"version": "3.0.0",
"version": "3.0.1",
"authors": [
{
"name": "Adinan Cenci",
Expand Down
3 changes: 3 additions & 0 deletions src/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public static function isRelativePath($path)
{
$path = self::forwardSlash($path);

if ($path == '') {
return true;
}

if ($path[0] == '/') {
return false;
Expand Down

0 comments on commit 433d1fb

Please sign in to comment.