$where clause returns no results when it starts with a newline

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 0.9.5
    • Affects Version/s: None
    • Component/s: JavaScript
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      situation jeff ran into:

      doing a where clause that starts with a newline

      db.test.find().where("""
      this.x < 2 ||
      this.x > 40""")

      returns no results even when the almost equivalent case

      db.test.find().where("""this.x < 2 ||
      this.x > 40""")

      does.

            Assignee:
            Eliot Horowitz (Inactive)
            Reporter:
            Michael Dirolf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: