Skip to content

Commit 9f25331

Browse files
committed
🐛 fix(parser-opts): 优化脚本
1 parent f8f98ac commit 9f25331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/parser-opts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Regex pattern test here : [Regex101](https://regex101.com/r/YxXWi5/7)
88

99
```js
1010
module.exports = {
11-
// Test URL: https://regex101.com/r/YxXWi5/7
12-
headerPattern: /^(?::\w*:\s)?(?<type>\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*\w)\s?(?<ticket>#\d*)?$/,
11+
// Test URL: https://regex101.com/r/YxXWi5/9
12+
headerPattern: /^(?::\w*:\s)?(?<type>\w*)(?:\((?<scope>.*)\))?!?:\s(?<subject>(?:(?!#).)*(?:(?!\s).))\s?(?<ticket>#\d*)?$/,
1313
headerCorrespondence: ['type', 'scope', 'subject', 'ticket'],
1414
};
1515
```

0 commit comments

Comments
 (0)