From f02a9bbdcfdd1d04ef0dd0849ad0d431a522bc82 Mon Sep 17 00:00:00 2001 From: Alexander Bulei Date: Wed, 6 Mar 2013 16:43:26 +0000 Subject: [PATCH] Issue on detection of options.root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In my case, i have .js files with parameters: ´´´ ruby ´´´ Your detection doesn't work with that format ;) Best Regards, Alexander Bulei --- markitup/jquery.markitup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }