Initial
This commit is contained in:
9
resources/app/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
generated
vendored
Normal file
9
resources/app/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
export const substring = (input, start, stop, reverse) => {
|
||||
if (start >= stop || input.length < stop) {
|
||||
return null;
|
||||
}
|
||||
if (!reverse) {
|
||||
return input.substring(start, stop);
|
||||
}
|
||||
return input.substring(input.length - stop, input.length - start);
|
||||
};
|
||||
Reference in New Issue
Block a user