ShaderMan icon indicating copy to clipboard operation
ShaderMan copied to clipboard

Web tool broken?

Open ThaineNorris opened this issue 6 years ago • 2 comments

I am trying to use your web tool, but it doesn't finish loading due to a JavaScript syntax error.

image

It says there is an "invalid regular expression flag s" on line 486 of ShaderMan.io

ThaineNorris avatar Apr 26 '19 16:04 ThaineNorris

Hi what is your browser? fireFox? can you try to use it with chrome

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_regexp_flag

I will fix it by using [\s\S] or [^] flag

https://stackoverflow.com/questions/159118/how-do-i-match-any-character-across-multiple-lines-in-a-regular-expression

smkplus avatar Apr 27 '19 03:04 smkplus

Hello,

Thank you for your reply. Yes, it works in Chrome!

Thanks again. Regards

On Fri, Apr 26, 2019 at 9:04 PM Seyed Morteza Kamali < [email protected]> wrote:

Hi what is your browser? fireFox? can you try to use it with chrome

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Bad_regexp_flag

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/smkplus/ShaderMan/issues/16#issuecomment-487249499, or mute the thread https://github.com/notifications/unsubscribe-auth/ABDSPNXWEGGSNJZYMGE2643PSO7CJANCNFSM4HIXJG4Q .

ThaineNorris avatar Apr 27 '19 13:04 ThaineNorris