OfficeDev / script-lab

Create, run and share your code directly from Office
MIT License
697 stars 157 forks source link

comments at the beginning of the script file aren't properly formatted #1045

Open lbianlbian opened 5 months ago

lbianlbian commented 5 months ago

Bug Report

Expected behavior:

Import a script and have it run.

Actual behavior:

The script is imported, but some line-breaks after the comments aren't recognized and the first few non-comment lines of the script file become comments.

Steps to Reproduce:

  1. Make a script lab project with // comments at the top, and then a function below.
  2. export it to github gists
  3. import the yaml file by copying the text of it (not the gist link)
  4. There should be an error.

Failure Logs:

Will be different depending on what lines are incorrectly turned into comments.