Browse Source

Fixed a regular expression

v3_develop
jos 10 years ago
parent
commit
8fba071432
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/timeline/14_group_performance.html

+ 1
- 1
examples/timeline/14_group_performance.html View File

@ -35,7 +35,7 @@
* http://www.netlobo.com/url_query_string_javascript.html
*/
function gup( name ) {
name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
name = name.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");
var regexS = "[\\?&]"+name+"=([^&#]*)";
var regex = new RegExp( regexS );
var results = regex.exec( window.location.href );

Loading…
Cancel
Save