-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: New internals for format to use
- Loading branch information
1 parent
1a6c220
commit 1f4ec8f
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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('_') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, '') | ||
} |