diff --git a/markitup/jquery.markitup.js b/markitup/jquery.markitup.js index b7e2d03..6d75cc1 100755 --- a/markitup/jquery.markitup.js +++ b/markitup/jquery.markitup.js @@ -59,7 +59,7 @@ // compute markItUp! path if (!options.root) { $('script').each(function(a, tag) { - miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); + miuScript = $(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js(.*)$/); if (miuScript !== null) { options.root = miuScript[1]; }