Skip to content

NSIS: Update Regex for constants pattern#3267

Merged
RunDevelopment merged 2 commits intoPrismJS:masterfrom
idleberg:fix/nsis-defines-pattern
Dec 4, 2021
Merged

NSIS: Update Regex for constants pattern#3267
RunDevelopment merged 2 commits intoPrismJS:masterfrom
idleberg:fix/nsis-defines-pattern

Conversation

@idleberg
Copy link
Copy Markdown
Contributor

@idleberg idleberg commented Dec 4, 2021

Similar to #3266, the constant patterns needs to be updated to support !-characters. While this is, arguably, highly unreadable, it's valid code shown in this example (take note of the line ${!defineifexist} var_name file_name).

Changes:

  • update Regex pattern for constants to support exclamation marks
  • add test for the above

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 4, 2021

JS File Size Changes (gzipped)

A total of 1 files have changed, with a combined diff of +1 B (+0.0%).

Details
file master pull size diff % diff
components/prism-nsis.min.js 2.02 KB 2.02 KB +1 B +0.0%

Generated by 🚫 dangerJS against f8b2817

@idleberg idleberg changed the title NSIS: Add test for new constants Regex pattern NSIS: Update Regex for constants pattern Dec 4, 2021
@RunDevelopment RunDevelopment merged commit 55583fb into PrismJS:master Dec 4, 2021
@RunDevelopment
Copy link
Copy Markdown
Member

Thank you for contributing @idleberg!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants