Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27899

Common: path.parse with a file extension but no directory results in an invalid dir value

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 9.0.1, Release 9.0.2
    • Fix Version/s: None
    • Component/s: Android, iOS
    • Labels:
      None
    • Sprint:
      2020 Sprint 11, 2020 Sprint 12

      Description

      Description

      When calling path.parse('a.js' the dir value in the returned object is dir: 'a.j' which is incorrect, the value should be dir: ''

      Steps to reproduce

      1. Add console.log(path.parse('a.js')); to your app.js and build

      Actual

      [INFO]

      { root: '', dir: 'a.j', base: 'a.js', ext: '.js', name: 'a' }
      Expected

      [INFO]

      { root: '', dir: ''. base: '', ext: '.js', name: 'a' }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                eharris Ewan Harris
                Reporter:
                eharris Ewan Harris
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration