We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723b5e6 commit cb144edCopy full SHA for cb144ed
src/core/directives/error.ts
@@ -5,7 +5,7 @@ import { defineDirective } from '../directive'
5
export default defineDirective({
6
nested: false,
7
name: '#error',
8
- pattern: /.*?#(?<directive>(?:warning)|(?:error)|(?:info))\s*(?<message>[\u4E00-\u9FA5\s\w]*).*/gm,
+ pattern: /.*?#(?<directive>(?:warning)|(?:error)|(?:info))\s*(?<message>[\u4E00-\u9FA5 \t\w]*).*?$/gm,
9
processor({ ctx, id }) {
10
return (...args) => {
11
const group = args[args.length - 1] as NamedGroupsArray
0 commit comments