Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 0921373

Browse files
Regular expression / data-url="(.*)"/ doesn't stop at the end of the attribute
but the last quotes in the HTML. I have replaced wildcard . with [^"] to fetch only the attribute content.
1 parent 265f6d9 commit 0921373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@
517517

518518
//pre-parse html to check for a data-url,
519519
//use it as the new fileUrl, base path, etc
520-
var redirectLoc = / data-url="(.*)"/.test( html ) && RegExp.$1;
520+
var redirectLoc = / data-url="([^"]*)"/.test( html ) && RegExp.$1;
521521

522522
if( redirectLoc ){
523523
if(base){

0 commit comments

Comments
 (0)