Skip to content

Commit

Permalink
refactor(lib/getPluginName): remove redundant regex quantifiers (#250)
Browse files Browse the repository at this point in the history
`{1}` is the same as not having it

Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent a52ee81 commit 6b73d38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/getPluginName.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const fpStackTracePattern = /at\s{1}(?:.*\.)?plugin\s{1}.*\n\s*(.*)/
const fpStackTracePattern = /at\s(?:.*\.)?plugin\s.*\n\s*(.*)/
const fileNamePattern = /(\w*(\.\w*)*)\..*/

module.exports = function getPluginName (fn) {
Expand Down

0 comments on commit 6b73d38

Please sign in to comment.