This repository was archived by the owner on Apr 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 134134 // If the script is loaded twice, then this will run in reverse order.
135135 for ( var scripts = doc . scripts , i = scripts . length ; -- i >= 0 ; ) {
136136 var script = scripts [ i ] ;
137- var match = script . src . match ( / \/ r u n _ p r e t t i f y \. j s (?: \? ( [ ^ # ] * ) ) ? (?: # .* ) ? $ / ) ;
137+ var match = script . src . match (
138+ / ^ [ ^ ? # ] * \/ r u n _ p r e t t i f y \. j s ( \? [ ^ # ] * ) ? (?: # .* ) ? $ / ) ;
138139 if ( match ) {
139140 scriptQuery = match [ 1 ] || '' ;
140141 // Remove the script from the DOM so that multiple runs at least run
Original file line number Diff line number Diff line change @@ -138,7 +138,8 @@ var IN_GLOBAL_SCOPE = false;
138138 // If the script is loaded twice, then this will run in reverse order.
139139 for ( var scripts = doc . scripts , i = scripts . length ; -- i >= 0 ; ) {
140140 var script = scripts [ i ] ;
141- var match = script . src . match ( / \/ r u n _ p r e t t i f y \. j s (?: \? ( [ ^ # ] * ) ) ? (?: # .* ) ? $ / ) ;
141+ var match = script . src . match (
142+ / ^ [ ^ ? # ] * \/ r u n _ p r e t t i f y \. j s ( \? [ ^ # ] * ) ? (?: # .* ) ? $ / ) ;
142143 if ( match ) {
143144 scriptQuery = match [ 1 ] || '' ;
144145 // Remove the script from the DOM so that multiple runs at least run
You can’t perform that action at this time.
0 commit comments