Skip to content

Commit d36ea99

Browse files
Autoloader: Fixed file detection regexes (#2549)
1 parent f62ca78 commit d36ea99

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plugins/autoloader/prism-autoloader.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@
233233

234234
var script = Prism.util.currentScript();
235235
if (script) {
236-
var autoloaderFile = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)js(?:\?[^\r\n/]*)?$/i;
237-
var prismFile = /(^|\/)[\w-]+\.(?:min\.)js(?:\?[^\r\n/]*)?$/i;
236+
var autoloaderFile = /\bplugins\/autoloader\/prism-autoloader\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i;
237+
var prismFile = /(^|\/)[\w-]+\.(?:min\.)?js(?:\?[^\r\n/]*)?$/i;
238238

239239
var autoloaderPath = script.getAttribute('data-autoloader-path');
240240
if (autoloaderPath != null) {

plugins/autoloader/prism-autoloader.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)