Hi, I found the regular expression used to match javascript:
'(?:<script.*?>)((\n|.)*?)(?:<\/script>)'
does not work as expected in Firefox.
I couldn't tell what went wrong, but it just does not match any of my scripts at all.... but on IE it worked fine.
After playing with it for a while, I found a version that works for both browsers:
'(?:<script.*?>)([\\s\\S]*?)(?:<\/script>)'
'[\\s\\S]' is said to really match anything including \n \r and something else that '.' does not match.
Maybe I has some weird characters in my script file, who knows...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I found the regular expression used to match javascript:
'(?:<script.*?>)((\n|.)*?)(?:<\/script>)'
does not work as expected in Firefox.
I couldn't tell what went wrong, but it just does not match any of my scripts at all.... but on IE it worked fine.
After playing with it for a while, I found a version that works for both browsers:
'(?:<script.*?>)([\\s\\S]*?)(?:<\/script>)'
'[\\s\\S]' is said to really match anything including \n \r and something else that '.' does not match.
Maybe I has some weird characters in my script file, who knows...
Thans for the fix - I'll check it and include in next release.