Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for startsWith (0.17 sec)

  1. docs_src/generate_clients/tutorial004.js

            if (operation.tags && operation.tags.length > 0) {
              const tag = operation.tags[0]
              const operationId = operation.operationId
              const toRemove = `${tag}-`
              if (operationId.startsWith(toRemove)) {
                const newOperationId = operationId.substring(toRemove.length)
                operation.operationId = newOperationId
              }
            }
          }
        }
    
        await fs.promises.writeFile(
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  2. docs/en/docs/js/custom.js

                        } else if (line.startsWith(promptLiteralStart)) {
                            saveBuffer();
                            const value = line.replace(promptLiteralStart, "").trimEnd();
                            useLines.push({
                                type: "input",
                                value: value
                            });
                        } else if (line.startsWith("// ")) {
                            saveBuffer();
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat May 08 17:50:56 GMT 2021
    - 6.6K bytes
    - Viewed (0)
  3. .cm/plugins/filters/byPlatform/index.js

        });
        return result;
    }
    
    function getPlatform(file) {
        let result = null; // Default to null in case no platform is found
    
        if (file.startsWith('platforms/')) {
            const parts = file.split('/');
            result = parts[1];
        }
    
        console.log(file + " = " + result);
        return result;
    }
    
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:47:29 GMT 2024
    - 1K bytes
    - Viewed (0)
  4. .cm/plugins/filters/byCodeowner/index.js

        });
    
        return Buffer.from(res.data.content, 'base64').toString()
    }
    
    function codeownersMapping(data) {
        return data
            .toString()
            .split('\n')
            .filter(x => x && !x.startsWith('#'))
            .map(x => x.split("#")[0])
            .map(x => {
                const line = x.trim();
                const [path, ...owners] = line.split(/\s+/);
                return {path, owners};
            });
    }
    
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
Back to top