Blame view

node_modules/eslint-plugin-node/lib/util/strip-import-path-params.js 479 Bytes
ce4c83ff   wxy   初始提交
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  /**
   * @author Toru Nagashima
   * @copyright 2016 Toru Nagashima. All rights reserved.
   * See LICENSE file in root directory for full license.
   */
  "use strict"
  
  //------------------------------------------------------------------------------
  // Public Interface
  //------------------------------------------------------------------------------
  
  module.exports = function stripImportPathParams(path) {
      const i = path.indexOf("!")
      return i === -1 ? path : path.slice(0, i)
  }