Skip to content

Commit

Permalink
Fix bug where github project name contains dot. (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
nodeloc authored Feb 3, 2025
1 parent b198952 commit c9ab488
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Plugins/GithubCommit/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Configurator extends Github
{
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w-]+\/[\w-]+)\/commit\/([0-9a-f]{7,40})(#commitcomment-\w+)?(#diff-[\w-]+)?|([\w-]+\/[\w-]+)@([0-9a-f]{7,40}))/si';
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/commit\/([0-9a-f]{7,40})(#commitcomment-\w+)?(#diff-[\w.-]+)?|([\w-]+\/[\w.-]+)@([0-9a-f]{7,40}))/si';

protected $tagName = 'GITHUBCOMMIT';

Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/GithubCompare/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Configurator extends Github
{
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w-]+\/[\w-]+)\/compare\/([\w\-\.]+)\.\.\.([\w\-\.]+))/si';
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/compare\/([\w\-\.]+)\.\.\.([\w\-\.]+))/si';

protected $tagName = 'GITHUBCOMPARE';

Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/GithubIssue/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Configurator extends Github
{
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w-]+\/[\w-]+)\/(issues)\/(\d+)(#issuecomment-\d+)?|([\w-]+\/[\w-]+)#(\d+))/si';
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/(issues)\/(\d+)(#issuecomment-\d+)?|([\w.-]+\/[\w.-]+)#(\d+))/si';
protected $tagName = 'GITHUBISSUE';

protected function getClassName()
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/GithubPullRequest/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Configurator extends Github
{
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w-]+\/[\w-]+)\/pull\/(\d+)(#pullrequestreview-\d+)?(\/commits\/[0-9a-f]{7,40})?)/si';
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/pull\/(\d+)(#pullrequestreview-\d+)?(\/commits\/[0-9a-f]{7,40})?)/si';
protected $tagName = 'GITHUBPR';

protected function getClassName()
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/GithubRepository/Configurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Configurator extends Github
{
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w-]+\/[\w-]+)(\/[^\s]*)?)/si';
protected $regexp = '/(?:^|\b)(?:https?\:\/\/github\.com\/([\w.-]+\/[\w.-]+)(\/[^\s]*)?)/si';
protected $tagName = 'GITHUBREPO';

protected function getClassName()
Expand Down

0 comments on commit c9ab488

Please sign in to comment.