SAP-BTP-Spielwiese/app1/node_modules/@sap/logging/lib/levels-container/star-match.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

8 lines
289 B
JavaScript

'use strict';
exports.buildRegExp = function (pattern) {
// does not include '*' since it has special semantics in our custom patterns
pattern = pattern.replace(/[.+?^${}()|[\]\\]/g, '\\$&');
pattern = pattern.replace(/\*/g, '.*');
return new RegExp('^' + pattern + '$', 'i');
};