Skip to content

Commit

Permalink
Chore: update lib/rules/no-loss-of-precision.js
Browse files Browse the repository at this point in the history
Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
  • Loading branch information
anikethsaha and mdjermanovic committed Aug 20, 2020
1 parent 20cc1f5 commit 44d109e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rules/no-loss-of-precision.js
Expand Up @@ -37,9 +37,9 @@ module.exports = {
}

/**
* Replaces the `_` from the raw with empty string for supporting numerci separators
* @param {Node} node the node being evaluated
* @returns {string} the raw string
* Gets the source code of the given number literal. Removes `_` numeric separators from the result.
* @param {Node} node the number `Literal` node
* @returns {string} raw source code of the literal, without numeric separators
*/
function getRaw(node) {
return node.raw.replace(/_/gu, "");
Expand Down

0 comments on commit 44d109e

Please sign in to comment.