Skip to content

Commit

Permalink
Added: New internals for format to use
Browse files Browse the repository at this point in the history
  • Loading branch information
dhershman1 committed Oct 13, 2024
1 parent 1a6c220 commit 1f4ec8f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/_internals/_hasPlaceholder.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @private
* @function
* @param {String} str The string to check for placeholders
* @returns {Boolean} Whether or not the string has a placeholder
*/
export default function _hasPlaceholder (str) {
return str.includes('_')
}
9 changes: 9 additions & 0 deletions src/_internals/_uglifyFormats.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
* @private
* @function
* @param {String} str The string to strip special characters
* @returns {String} The newly created string with special characters stripped
*/
export default function _uglifyFormats (str) {
return str.replace(/[^a-wyz]/gi, '')
}

0 comments on commit 1f4ec8f

Please sign in to comment.