Skip to content

Commit

Permalink
fix(error): too many matches
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Sep 13, 2023
1 parent 723b5e6 commit cb144ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/directives/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { defineDirective } from '../directive'
export default defineDirective({
nested: false,
name: '#error',
pattern: /.*?#(?<directive>(?:warning)|(?:error)|(?:info))\s*(?<message>[\u4E00-\u9FA5\s\w]*).*/gm,
pattern: /.*?#(?<directive>(?:warning)|(?:error)|(?:info))\s*(?<message>[\u4E00-\u9FA5 \t\w]*).*?$/gm,
processor({ ctx, id }) {
return (...args) => {
const group = args[args.length - 1] as NamedGroupsArray
Expand Down

0 comments on commit cb144ed

Please sign in to comment.