Skip to content

Commit

Permalink
cleaning up a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
thlorenz committed Jul 21, 2012
1 parent 237cfca commit ce8c574
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions inline-scripts.js
@@ -1,17 +1,17 @@
/*jshint laxbreak: true */

var codePattern = /<td class="code".*?<\/td>/;
var allScriptTags = [

// <script> ... </script>
{ open: /<script[^>]*>/, close: /<\/script[^>]*>/, alias: 'js' }

// <? ... ?>
, { open: /^\s*<\?\s*$/, close: /^\s*\?>\s*$/, alias: 'php' }

// <![CDATA[ ... ]] -- (inline actionscript) only used for xhtml
, { open: /^\s*?<!\[CDATA\[\s*?$/, close: /^\s*?\]\]>\s*?$/, alias: 'as3', applyTo: 'xhtml' }
];
var codePattern = /<td class="code".*?<\/td>/
, allScriptTags = [
// <script> ... </script>
{ open: /<script[^>]*>/, close: /<\/script[^>]*>/, alias: 'js' }

// <? ... ?>
, { open: /^\s*<\?\s*$/, close: /^\s*\?>\s*$/, alias: 'php' }

// <![CDATA[ ... ]] -- (inline actionscript) only used for xhtml
, { open: /^\s*?<!\[CDATA\[\s*?$/, close: /^\s*?\]\]>\s*?$/, alias: 'as3', applyTo: 'xhtml' }
];

function findScripts(lines, specifiedAlias) {
var scripts = []
Expand Down

0 comments on commit ce8c574

Please sign in to comment.