Skip to content

Instantly share code, notes, and snippets.

@kuyseng
Created May 26, 2012 03:54
Show Gist options
  • Select an option

  • Save kuyseng/2792082 to your computer and use it in GitHub Desktop.

Select an option

Save kuyseng/2792082 to your computer and use it in GitHub Desktop.
javascript: indesign already in library
function in_library (library_string, name) {
var my_reg_exp = new RegExp( "::" + remove_file_extension(name) + "::" ); // use separation symbol
var result = false;
if(my_reg_exp.test( library_string )) {
result = true;
};
return result;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment