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

Fix to address #3263 and #3447 for "in" usage #3448

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fpereira1
Copy link

@fpereira1 fpereira1 commented Oct 20, 2024

I was still hitting issue #3263 when using "in" instead of "of" (which caused other odd problems). The regex was looking for * (0+) spaces instead of + (at least one) space. Using + instead prevents the regex from catching "in ofxxxxx".

BTW, I have cherry-picked the commit from another PR (#3318), added more context to it by creating and issue (#3447) with a minimal reproducible example, brought this work up to date with master and filled in the details for release on the rollingversions bot

fixes: #3447, fixes #3263

I was still hitting issue pugjs#3263 when using "in" instead of "of" (which caused other odd problems).  The regex was looking for * (0+) spaces instead of + (at least one) space.  Using + instead prevents the regex from catching "in ofxxxxx".
Copy link

rollingversions bot commented Oct 20, 2024

pug-lexer (5.0.1 → 5.0.2)

Bug Fixes

  • Fixes for "in" usage in some cases where variable starts with of

Packages With No Changes

The following packages have no user facing changes, so won't be released:

  • pug
  • pug-attrs
  • pug-code-gen
  • pug-error
  • pug-filters
  • pug-linker
  • pug-load
  • pug-parser
  • pug-runtime
  • pug-strip-comments
  • pug-walk

Edit changelogs

@fpereira1 fpereira1 changed the title Fix to address #3263 for "in" usage Fix to address #3263 and #3447 for "in" usage Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

each fails with variable named "offerings" each fails with variable named "officers"
2 participants