Skip to content

Commit

Permalink
Merge fe54afd into 3e0bb77
Browse files Browse the repository at this point in the history
  • Loading branch information
tianyiw2013 committed Aug 13, 2021
2 parents 3e0bb77 + fe54afd commit 4ca362a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Change Log

All notable changes to the "php-docblocker" extension will be documented in this file.
## [2.2.1] - 2021-10-13
- Supported workspace trust

## [2.2.0] - 2021-10-11
- Use esbundle to improve startup performance
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ and can be triggered by typing @ then another characted (Provided your vscode se
| @abstract | @abstract |
| @after | @after |
| @afterClass | @afterClass |
| @author | @author ${1:{{name}}} <${2:{{email}}}> |
| @author | @author \${1:name} <${2:email}> |
| @backupGlobals | @backupGlobals ${1:switch} |
| @backupStaticAttributes | @backupStaticAttributes ${1:switch} |
| @before | @before |
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
"bugs": {
"url": "https://github.com/neild3r/vscode-php-docblocker/issues"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"icon": "images/logo.png",
"main": "./out/src/extension.js",
"contributes": {
Expand All @@ -39,7 +44,7 @@
],
"configuration": {
"type": "object",
"title": "PHP DocBlocker configuration",
"title": "PHP DocBlocker",
"properties": {
"php-docblocker.gap": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion src/block/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default class FunctionBlock extends Block
/**
* @inheritdoc
*/
protected pattern:RegExp = /^\s*((.*)(protected|private|public))?(.*)?\s*function\s+&?([A-Za-z0-9_]+)\s*\(([^{;]*)/m;
protected pattern:RegExp = /^\s*((.*)(protected|private|public))?(.*)?\s*function\s+&?([a-z0-9_]+)\s*\(([^{;]*)/im;

/**
* @inheritdoc
Expand Down

0 comments on commit 4ca362a

Please sign in to comment.