Skip to content

Commit

Permalink
chore(index): Removes unused functions internals.reverse and internal…
Browse files Browse the repository at this point in the history
…s.endsWith
  • Loading branch information
lupomontero committed Nov 28, 2024
1 parent 3ddd8e2 commit a096d29
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,6 @@ const rulesByPunySuffix = rules.reduce(
new Map(),
);

//
// Check if given string ends with `suffix`.
//
internals.endsWith = function (str, suffix) {

return str.indexOf(suffix, str.length - suffix.length) !== -1;
};

//
// ASCII string reverse function
//
internals.reverse = function (str) {
return str.split("").reverse().join("")
}

//
// Find rule for a given domain.
Expand Down

0 comments on commit a096d29

Please sign in to comment.