-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(compiler-core): missing source and have with multiple spaces should emit error during compiler #5821
Conversation
✅ Deploy Preview for vue-sfc-playground ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for vuejs-coverage ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for vue-next-template-explorer ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't handle sources that contain spaces
@@ -308,7 +308,7 @@ export function processFor( | |||
} | |||
} | |||
|
|||
const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/ | |||
const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change looks good to me, but this line has moved since this PR was first opened. It can now be found at:
core/packages/compiler-core/src/utils.ts
Line 502 in 94b9b37
export const forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/ |
c31788b
to
ee65aa1
Compare
fix #5819