ACIL FM
Dark
Refresh
Current DIR:
/home/benbot/bot/server/node_modules/eslint/lib/linter
/
home
benbot
bot
server
node_modules
eslint
lib
linter
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
code-path-analysis
-
chmod
Open
Rename
Delete
apply-disable-directives.js
18.66 MB
chmod
View
DL
Edit
Rename
Delete
esquery.js
9.13 MB
chmod
View
DL
Edit
Rename
Delete
file-context.js
3.53 MB
chmod
View
DL
Edit
Rename
Delete
file-report.js
18.25 MB
chmod
View
DL
Edit
Rename
Delete
index.js
179 B
chmod
View
DL
Edit
Rename
Delete
interpolate.js
1.31 MB
chmod
View
DL
Edit
Rename
Delete
linter.js
75.6 MB
chmod
View
DL
Edit
Rename
Delete
rule-fixer.js
5.04 MB
chmod
View
DL
Edit
Rename
Delete
rules.js
1.63 MB
chmod
View
DL
Edit
Rename
Delete
source-code-fixer.js
4.11 MB
chmod
View
DL
Edit
Rename
Delete
source-code-traverser.js
9.47 MB
chmod
View
DL
Edit
Rename
Delete
source-code-visitor.js
2.1 MB
chmod
View
DL
Edit
Rename
Delete
timing.js
3.73 MB
chmod
View
DL
Edit
Rename
Delete
vfile.js
2.75 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/benbot/bot/server/node_modules/eslint/lib/linter/interpolate.js
/** * @fileoverview Interpolate keys from an object into a string with {{ }} markers. * @author Jed Fox */ "use strict"; //------------------------------------------------------------------------------ // Public Interface //------------------------------------------------------------------------------ /** * Returns a global expression matching placeholders in messages. * @returns {RegExp} Global regular expression matching placeholders */ function getPlaceholderMatcher() { return /\{\{([^{}]+)\}\}/gu; } /** * Replaces {{ placeholders }} in the message with the provided data. * Does not replace placeholders not available in the data. * @param {string} text Original message with potential placeholders * @param {Record<string, string>} data Map of placeholder name to its value * @returns {string} Message with replaced placeholders */ function interpolate(text, data) { if (!data) { return text; } const matcher = getPlaceholderMatcher(); // Substitution content for any {{ }} markers. return text.replace(matcher, (fullMatch, termWithWhitespace) => { const term = termWithWhitespace.trim(); if (term in data) { return data[term]; } // Preserve old behavior: If parameter name not provided, don't replace it. return fullMatch; }); } module.exports = { getPlaceholderMatcher, interpolate, };
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply