Created
March 15, 2019 01:09
-
-
Save NakedMoleRatScientist/c996bf01e3fb847a4279c55d9bdda9ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_id = function(data) | |
{ | |
var match_string = /id:/; | |
var lines = data.split("\n"); | |
for (var i = 0; i < lines.length; i++) | |
{ | |
if (lines[i].match(match_string)) | |
{ | |
var components = lines[i].split("\""); | |
console.log(components[1]); | |
console.log("beep"); | |
console.log("bop"); | |
//return components[1]); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment