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

Autoloader: Fixed file detection regexes #2549

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

RunDevelopment
Copy link
Member

Guess who forgot to make a group optional and then blindly copy-pasted it. Yep, me.

This fixes the bug introduced in #1928. The Autoloader plugin will now also recognize non-minified files.

@RunDevelopment RunDevelopment merged commit d36ea99 into PrismJS:master Sep 11, 2020
@RunDevelopment RunDevelopment deleted the autoloader-regex-fix branch September 11, 2020 13:16
@8thHalfHour
Copy link

8thHalfHour commented Dec 11, 2020

So, is it now possible to include the link to the autoloader CDN and not have to also set the languages_path to the components folder? In other words, is this still required after linking to the script:

<script>
  Prism.plugins.autoloader.languages_path = 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.22.0/components/';
</script>

@RunDevelopment
Copy link
Member Author

@8thHalfHour Yes, this will now work. You don't have to manually set languages_path anymore.

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.

None yet

3 participants