Skip to content

Instantly share code, notes, and snippets.

/result.md Secret

Created October 27, 2016 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/eddcb35430de36800b958ef3326449d7 to your computer and use it in GitHub Desktop.
Save anonymous/eddcb35430de36800b958ef3326449d7 to your computer and use it in GitHub Desktop.
result of fugue's code

For this code:

 ''3d6+1'.match(^(\d+)*(d)*(\d)*([\+|-])*(\d)*)

This was the output:

undefined:1
 ''3d6+1'.match(^(\d+)*(d)*(\d)*([\+|-])*(\d)*)
   ^

SyntaxError: Unexpected number
    at Object.<anonymous> (/var/ws/eval-js.js:11:26)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment