Skip to content
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

@plugi and @impor are supported #3660

Closed
edhgoose opened this issue Oct 29, 2021 · 1 comment · Fixed by #3668
Closed

@plugi and @impor are supported #3660

edhgoose opened this issue Oct 29, 2021 · 1 comment · Fixed by #3668
Labels

Comments

@edhgoose
Copy link
Contributor

We discovered that the regex used for import and plugin have a ? at the end of them, which means @plugi and @impor work as well as @plugin and @import.

These are defined here: https://github.com/less/less.js/blob/master/packages/less/src/less/parser/parser.js#L1687 and https://github.com/less/less.js/blob/master/packages/less/src/less/parser/parser.js#L1847.

This doesn't look like an intentional decision and more of a regex mistake. See here for example inputs: https://regex101.com/r/NUw7E2/2

Is this correct?

@iChenLei
Copy link
Member

Thanks for report this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants